home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / SourceCode / Tutorial / Book / Ch05.Messaging.wn / WNDocument.wn next >
Unknown  |  1992-12-19  |  16.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Wanton Packer Module (music/wantonPacker) ext Supported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 01 | 04 00 3f 7f 04 00 3b 7f |........|..?...;.|
|00000010| 04 00 03 d5 04 00 03 e3 | 04 00 02 0c 00 05 5b 70 |........|......[p|
|00000020| 00 05 5a dc 00 05 48 ec | 00 05 45 e8 00 05 5c 7c |..Z...H.|..E...\||
|00000030| 00 00 00 00 00 00 00 00 | 00 04 00 00 00 00 00 00 |........|........|
|00000040| 09 00 00 00 00 00 00 ff | 00 00 ff 00 01 00 ef b4 |........|........|
|00000050| 00 00 f1 fc 02 64 00 00 | 10 4c 00 2b 02 d1 00 6b |.....d..|.L.+...k|
|00000060| 03 f4 02 0e 00 39 00 00 | 00 00 ff 00 00 00 00 00 |.....9..|........|
|00000070| 00 00 00 00 00 00 01 01 | 02 64 00 00 00 48 00 48 |........|.d...H.H|
|00000080| 00 01 00 18 03 18 02 64 | 00 00 00 00 02 da 02 2f |.......d|......./|
|00000090| 00 64 00 04 19 00 04 00 | 30 0a 00 1e f0 05 00 48 |.d......|0......H|
|000000a0| 00 2a 04 00 30 0a 00 1e | f0 05 00 48 00 2a fc 71 |.*..0...|...H.*.q|
|000000b0| 00 00 04 0c 00 00 00 00 | ff ff 00 00 00 00 00 00 |........|........|
|000000c0| 40 29 00 00 40 29 00 00 | 40 29 00 00 cf 72 00 00 |@)..@)..|@)...r..|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 04 00 3a d5 | 04 00 3b 7f 04 00 03 d5 |......:.|..;.....|
|00000110| 04 00 03 e3 04 00 02 0c | 00 05 5b 70 00 05 5a dc |........|..[p..Z.|
|00000120| 00 05 48 ec 00 05 45 e8 | 00 05 5c 7c 00 00 00 00 |..H...E.|..\|....|
|00000130| 00 00 00 00 00 04 00 00 | 00 00 00 00 09 00 00 00 |........|........|
|00000140| 00 00 00 ff 00 00 ff 00 | 01 00 ef b4 00 00 f1 fc |........|........|
|00000150| 02 64 00 00 10 4c 00 2b | 02 d1 00 6b 03 f4 02 0e |.d...L.+|...k....|
|00000160| 00 39 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |.9......|........|
|00000170| 00 00 01 01 02 64 00 00 | 00 48 00 48 00 01 00 18 |.....d..|.H.H....|
|00000180| 03 18 02 64 00 00 00 00 | 02 da 02 2f 00 64 00 04 |...d....|.../.d..|
|00000190| 19 00 04 00 30 0a 00 1d | f0 05 00 48 00 2a 04 00 |....0...|...H.*..|
|000001a0| 30 0a 00 1d f0 05 00 48 | 00 2a fc 71 00 00 00 00 |0......H|.*.q....|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 3b 99 00 00 |........|....;...|
|000001c0| 3b 99 00 00 3b 99 00 00 | cf 72 00 00 00 00 00 00 |;...;...|.r......|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 04 0d 0d 0d 0d 00 04 | 0d 0d 0d 0d 00 78 00 03 |........|.....x..|
|00000210| 00 00 00 48 00 48 00 00 | 00 00 02 da 02 2f 00 00 |...H.H..|...../..|
|00000220| 00 00 03 18 02 64 01 5b | 05 28 03 fc 00 02 00 00 |.....d.[|.(......|
|00000230| 00 48 00 48 00 00 00 00 | 03 18 02 64 00 01 00 00 |.H.H....|...d....|
|00000240| 00 64 00 00 00 01 00 01 | 01 01 00 00 00 01 27 0f |.d......|......'.|
|00000250| 00 01 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 02 00 19 01 90 00 00 | 00 00 00 40 00 00 00 00 |........|...@....|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 04 | 0d 0d 0d 0d 00 1f fb 00 |........|........|
|00000290| 00 00 01 00 dc 01 c2 57 | 4e 47 72 61 70 68 69 63 |.......W|NGraphic|
|000002a0| 2e 37 33 38 36 34 37 2e | 65 70 73 f7 0d 00 1f fb |.738647.|eps.....|
|000002b0| 00 00 00 01 00 a4 01 a9 | 57 4e 47 72 61 70 68 69 |........|WNGraphi|
|000002c0| 63 2e 35 37 35 38 30 39 | 2e 65 70 73 f7 0d 00 6c |c.575809|.eps...l|
|000002d0| ff 00 15 09 00 f7 f9 03 | f7 fd 03 f7 f9 00 f7 ff |........|........|
|000002e0| 00 15 0a 00 f7 20 53 65 | 65 20 43 68 61 70 74 65 |..... Se|e Chapte|
|000002f0| 72 20 36 20 6f 66 20 74 | 68 65 20 20 4e 65 58 54 |r 6 of t|he NeXT|
|00000300| 20 53 79 73 74 65 6d 20 | 52 65 66 65 72 65 6e 63 | System |Referenc|
|00000310| 65 20 4d 61 6e 75 61 6c | 20 66 6f 72 20 6d 6f 72 |e Manual| for mor|
|00000320| 65 20 64 65 74 61 69 6c | 73 20 61 62 6f 75 74 20 |e detail|s about |
|00000330| 64 65 6c 65 67 61 74 69 | 6f 6e 2e 0d 00 21 0d fb |delegati|on...!..|
|00000340| 00 00 00 01 01 31 01 c0 | 57 4e 47 72 61 70 68 69 |.....1..|WNGraphi|
|00000350| 63 2e 31 37 33 35 39 31 | 2e 65 70 73 f7 0d 0d 00 |c.173591|.eps....|
|00000360| 74 ff 00 15 09 00 f7 f9 | 03 f7 fd 03 f7 f9 00 f7 |t.......|........|
|00000370| ff 00 15 0a 00 f7 54 68 | 65 20 41 62 73 6f 66 74 |......Th|e Absoft|
|00000380| 20 46 4f 52 54 52 41 4e | 20 63 6f 6d 70 69 6c 65 | FORTRAN| compile|
|00000390| 72 20 77 61 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |r was av|ailable |
|000003a0| 66 6f 72 20 74 68 65 20 | 4e 65 58 54 20 73 79 73 |for the |NeXT sys|
|000003b0| 74 65 6d 20 65 76 65 6e | 20 62 65 66 6f 72 65 20 |tem even| before |
|000003c0| 72 65 6c 65 61 73 65 20 | 31 2e 30 f9 00 f7 ff 00 |release |1.0.....|
|000003d0| 15 0a 00 f7 0d 00 0c 24 | 00 03 5f 00 0f 24 00 02 |.......$|.._..$..|
|000003e0| ce 00 0f 00 06 00 08 00 | 00 00 01 01 7c 0d 41 20 |........|....|.A |
|000003f0| 67 6f 6f 64 20 64 65 6d | 6f 6e 73 74 72 61 74 69 |good dem|onstrati|
|00000400| 6f 6e 20 6f 66 20 6d 65 | 73 73 61 67 69 6e 67 20 |on of me|ssaging |
|00000410| 63 61 6e 20 62 65 20 73 | 65 65 6e 20 64 69 72 65 |can be s|een dire|
|00000420| 63 74 6c 79 20 77 69 74 | 68 69 6e 20 74 68 65 20 |ctly wit|hin the |
|00000430| 49 6e 74 65 72 66 61 63 | 65 20 42 75 69 6c 64 65 |Interfac|e Builde|
|00000440| 72 2e 20 20 54 6f 20 73 | 65 65 20 74 68 69 73 2c |r. To s|ee this,|
|00000450| 20 73 74 61 72 74 20 75 | 70 20 49 6e 74 65 72 66 | start u|p Interf|
|00000460| 61 63 65 20 42 75 69 6c | 64 65 72 20 61 6e 64 20 |ace Buil|der and |
|00000470| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 61 70 70 |create a| new app|
|00000480| 6c 69 63 61 74 69 6f 6e | 2e 20 20 44 72 61 67 20 |lication|. Drag |
|00000490| 61 20 73 6c 69 64 65 72 | 20 6f 62 6a 65 63 74 20 |a slider| object |
|000004a0| 61 6e 64 20 61 20 74 65 | 78 74 20 6f 62 6a 65 63 |and a te|xt objec|
|000004b0| 74 20 6f 6e 74 6f 20 74 | 68 65 20 6d 61 69 6e 20 |t onto t|he main |
|000004c0| 77 69 6e 64 6f 77 2e 20 | 20 57 68 69 6c 65 20 74 |window. | While t|
|000004d0| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 6b 65 79 20 69 |he contr|ol key i|
|000004e0| 73 20 62 65 69 6e 67 20 | 70 72 65 73 73 65 64 2c |s being |pressed,|
|000004f0| 20 64 72 61 67 20 61 20 | 63 6f 6e 6e 65 63 74 69 | drag a |connecti|
|00000500| 6f 6e 20 66 72 6f 6d 20 | 74 68 65 20 73 6c 69 64 |on from |the slid|
|00000510| 65 72 20 74 6f 20 74 68 | 65 20 74 65 78 74 20 6f |er to th|e text o|
|00000520| 62 6a 65 63 74 2e 20 20 | 59 6f 75 20 73 68 6f 75 |bject. |You shou|
|00000530| 6c 64 20 73 65 65 20 61 | 20 62 6c 61 63 6b 20 22 |ld see a| black "|
|00000540| 72 75 62 62 65 72 20 62 | 61 6e 64 22 20 6c 69 6e |rubber b|and" lin|
|00000550| 65 20 61 70 70 65 61 72 | 20 61 73 20 69 6e 20 66 |e appear| as in f|
|00000560| 69 67 75 72 65 20 39 2e | 0d 03 6a 4d 65 73 73 61 |igure 9.|..jMessa|
|00000570| 67 69 6e 67 20 69 73 20 | 76 65 72 79 20 73 69 6d |ging is |very sim|
|00000580| 69 6c 61 72 20 74 6f 20 | 61 20 73 75 62 72 6f 75 |ilar to |a subrou|
|00000590| 74 69 6e 65 20 63 61 6c | 6c 20 69 6e 20 73 6f 6d |tine cal|l in som|
|000005a0| 65 20 77 61 79 73 2e 20 | 20 49 74 20 69 73 20 75 |e ways. | It is u|
|000005b0| 73 75 61 6c 6c 79 20 6f | 6e 65 20 6c 69 6e 65 20 |sually o|ne line |
|000005c0| 6f 66 20 63 6f 64 65 20 | 74 68 61 74 20 63 61 75 |of code |that cau|
|000005d0| 73 65 73 20 61 20 6c 61 | 72 67 65 72 20 61 6e 64 |ses a la|rger and|
|000005e0| 20 70 6f 73 73 69 62 6c | 79 20 72 65 6d 6f 74 65 | possibl|y remote|
|000005f0| 20 73 65 63 74 69 6f 6e | 20 6f 66 20 61 20 70 72 | section| of a pr|
|00000600| 6f 67 72 61 6d 20 74 6f | 20 62 65 20 65 78 65 63 |ogram to| be exec|
|00000610| 75 74 65 64 2e 20 20 42 | 6f 74 68 20 73 75 62 72 |uted. B|oth subr|
|00000620| 6f 75 74 69 6e 65 20 63 | 61 6c 6c 73 20 61 6e 64 |outine c|alls and|
|00000630| 20 6d 65 73 73 61 67 65 | 73 20 68 61 76 65 20 61 | message|s have a|
|00000640| 72 67 75 6d 65 6e 74 73 | 20 61 6e 64 20 74 68 65 |rguments| and the|
|00000650| 73 65 20 61 72 67 75 6d | 65 6e 74 73 20 65 61 63 |se argum|ents eac|
|00000660| 68 20 68 61 76 65 20 64 | 61 74 61 20 74 79 70 65 |h have d|ata type|
|00000670| 73 20 74 68 61 74 20 6d | 75 73 74 20 62 65 20 63 |s that m|ust be c|
|00000680| 68 65 63 6b 65 64 20 61 | 74 20 73 6f 6d 65 20 70 |hecked a|t some p|
|00000690| 6f 69 6e 74 2e 20 20 42 | 75 74 20 6d 65 73 73 61 |oint. B|ut messa|
|000006a0| 67 65 20 73 74 61 74 65 | 6d 65 6e 74 73 20 61 72 |ge state|ments ar|
|000006b0| 65 20 6d 75 63 68 20 6d | 6f 72 65 20 66 6c 65 78 |e much m|ore flex|
|000006c0| 69 62 6c 65 20 69 6e 20 | 6d 61 6e 79 20 77 61 79 |ible in |many way|
|000006d0| 73 2e 20 20 57 65 20 63 | 61 6e 20 73 65 6e 64 20 |s. We c|an send |
|000006e0| 61 20 6d 65 73 73 61 67 | 65 20 73 74 61 74 65 6d |a messag|e statem|
|000006f0| 65 6e 74 20 6f 66 66 20 | 74 6f 20 74 68 65 20 6f |ent off |to the o|
|00000700| 62 6a 65 63 74 20 62 75 | 74 20 74 68 61 74 20 6f |bject bu|t that o|
|00000710| 62 6a 65 63 74 20 64 6f | 65 73 20 6e 6f 74 20 68 |bject do|es not h|
|00000720| 61 76 65 20 74 6f 20 68 | 61 6e 64 65 6c 20 74 68 |ave to h|andel th|
|00000730| 61 74 20 6d 65 73 73 61 | 67 65 20 62 79 20 69 74 |at messa|ge by it|
|00000740| 73 65 6c 66 2e 20 20 49 | 66 20 69 74 20 64 6f 65 |self. I|f it doe|
|00000750| 73 20 6e 6f 74 20 68 61 | 76 65 20 74 68 65 20 6e |s not ha|ve the n|
|00000760| 61 6d 65 64 20 6d 65 74 | 68 6f 64 20 69 6e 20 69 |amed met|hod in i|
|00000770| 74 73 20 6c 69 73 74 20 | 6f 66 20 6d 65 73 73 61 |ts list |of messa|
|00000780| 67 65 73 2c 20 69 74 20 | 72 65 2d 64 69 72 65 63 |ges, it |re-direc|
|00000790| 74 73 20 74 68 65 20 6d | 65 73 73 61 67 65 20 74 |ts the m|essage t|
|000007a0| 6f 20 69 74 73 20 73 75 | 70 65 72 2d 63 6c 61 73 |o its su|per-clas|
|000007b0| 73 2e 20 20 49 66 20 74 | 68 65 20 73 75 70 65 72 |s. If t|he super|
|000007c0| 2d 63 6c 61 73 73 20 64 | 6f 65 73 20 6e 6f 74 20 |-class d|oes not |
|000007d0| 72 65 73 70 6f 6e 64 20 | 69 74 20 61 6c 73 6f 20 |respond |it also |
|000007e0| 73 65 6e 64 73 20 74 68 | 65 20 6d 65 73 73 61 67 |sends th|e messag|
|000007f0| 65 20 6f 6e 20 75 70 20 | 74 68 65 20 69 6e 68 65 |e on up |the inhe|
|00000800| 72 69 74 61 6e 63 65 20 | 74 72 65 65 20 73 74 72 |ritance |tree str|
|00000810| 75 63 74 75 72 65 2e 20 | 20 49 6e 20 74 72 61 64 |ucture. | In trad|
|00000820| 69 74 69 6f 6e 61 6c 20 | 70 72 6f 67 72 61 6d 6d |itional |programm|
|00000830| 69 6e 67 20 6c 61 6e 67 | 75 61 67 65 73 20 77 68 |ing lang|uages wh|
|00000840| 65 6e 20 61 20 73 75 62 | 72 6f 75 74 69 6e 65 20 |en a sub|routine |
|00000850| 69 73 20 69 6e 73 65 72 | 74 65 64 20 69 6e 74 6f |is inser|ted into|
|00000860| 20 61 20 70 72 6f 67 72 | 61 6d 20 74 68 65 20 70 | a progr|am the p|
|00000870| 72 6f 67 72 61 6d 20 66 | 6c 6f 77 20 68 61 73 20 |rogram f|low has |
|00000880| 6f 6e 6c 79 20 6f 6e 65 | 20 63 68 6f 69 63 65 2e |only one| choice.|
|00000890| 20 20 54 68 65 20 70 72 | 6f 67 72 61 6d 20 63 6f | The pr|ogram co|
|000008a0| 6e 74 72 6f 6c 20 6d 75 | 73 74 20 67 6f 20 74 6f |ntrol mu|st go to|
|000008b0| 20 61 20 73 75 62 72 6f | 75 74 69 6e 65 20 69 6e | a subro|utine in|
|000008c0| 20 6f 6e 65 20 6b 6e 6f | 77 6e 20 6c 6f 63 61 74 | one kno|wn locat|
|000008d0| 69 6f 6e 2e 0d 03 0e 0d | 42 65 63 61 75 73 65 20 |ion.....|Because |
|000008e0| 77 65 20 68 61 76 65 20 | 61 20 73 65 61 72 63 68 |we have |a search|
|000008f0| 20 70 61 74 68 20 66 6f | 72 20 6d 65 73 73 61 67 | path fo|r messag|
|00000900| 65 73 20 77 65 20 68 61 | 76 65 20 74 68 65 20 61 |es we ha|ve the a|
|00000910| 62 69 6c 69 74 79 20 74 | 6f 20 69 6e 74 65 72 63 |bility t|o interc|
|00000920| 65 70 74 20 6d 65 73 73 | 61 67 65 73 2e 20 20 57 |ept mess|ages. W|
|00000930| 65 20 63 61 6e 20 63 68 | 61 6e 67 65 20 74 68 65 |e can ch|ange the|
|00000940| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 6f | functio|nality o|
|00000950| 66 20 61 20 6d 65 73 73 | 61 67 65 20 63 6f 6d 70 |f a mess|age comp|
|00000960| 6c 65 74 65 6c 79 20 6f | 72 20 77 65 20 63 61 6e |letely o|r we can|
|00000970| 20 6a 75 73 74 20 63 68 | 61 6e 67 65 20 6f 6e 65 | just ch|ange one|
|00000980| 20 73 6d 61 6c 6c 20 61 | 73 70 65 63 74 20 6f 66 | small a|spect of|
|00000990| 20 69 74 20 61 6e 64 20 | 74 68 65 6e 20 73 65 6e | it and |then sen|
|000009a0| 64 20 74 68 65 20 6d 65 | 73 73 61 67 65 20 6f 6e |d the me|ssage on|
|000009b0| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 20 69 |. For e|xample i|
|000009c0| 66 20 77 65 20 77 61 6e | 74 65 64 20 74 6f 20 63 |f we wan|ted to c|
|000009d0| 68 61 6e 67 65 20 74 68 | 65 20 77 61 79 20 61 20 |hange th|e way a |
|000009e0| 73 6c 69 64 65 72 20 77 | 61 73 20 64 72 61 77 6e |slider w|as drawn|
|000009f0| 2c 20 70 65 72 68 61 70 | 73 20 77 65 20 77 61 6e |, perhap|s we wan|
|00000a00| 74 65 64 20 74 6f 20 6a | 75 73 74 20 61 64 64 20 |ted to j|ust add |
|00000a10| 61 20 70 61 67 65 20 6f | 72 20 72 65 63 6f 72 64 |a page o|r record|
|00000a20| 20 6e 75 6d 62 65 72 20 | 74 6f 20 74 68 65 20 6b | number |to the k|
|00000a30| 6e 6f 62 20 6f 66 20 61 | 20 73 6c 69 64 65 72 2e |nob of a| slider.|
|00000a40| 20 20 54 68 61 74 20 63 | 6f 75 6c 64 20 62 65 20 | That c|ould be |
|00000a50| 64 6f 6e 65 20 62 79 20 | 73 75 62 2d 63 6c 61 73 |done by |sub-clas|
|00000a60| 73 69 6e 67 20 74 68 65 | 20 73 6c 69 64 65 72 20 |sing the| slider |
|00000a70| 6f 62 6a 65 63 74 20 61 | 6e 64 20 6a 75 73 74 20 |object a|nd just |
|00000a80| 63 68 61 6e 67 69 6e 67 | 20 74 68 65 20 6d 65 74 |changing| the met|
|00000a90| 68 6f 64 73 20 74 68 61 | 74 20 64 72 61 77 20 74 |hods tha|t draw t|
|00000aa0| 68 65 20 73 6c 69 64 65 | 72 2e 20 20 57 65 20 64 |he slide|r. We d|
|00000ab0| 6f 20 6e 6f 74 20 68 61 | 76 65 20 74 6f 20 63 68 |o not ha|ve to ch|
|00000ac0| 61 6e 67 65 20 74 68 65 | 20 77 61 79 20 74 68 65 |ange the| way the|
|00000ad0| 20 73 6c 69 64 65 72 20 | 73 65 6e 64 73 20 61 6e | slider |sends an|
|00000ae0| 64 20 72 65 63 65 69 76 | 65 73 20 6d 65 73 73 61 |d receiv|es messa|
|00000af0| 67 65 73 20 6f 72 20 74 | 68 65 20 77 61 79 20 74 |ges or t|he way t|
|00000b00| 68 65 20 69 6e 69 74 69 | 61 6c 20 76 61 6c 75 65 |he initi|al value|
|00000b10| 73 20 61 72 65 20 63 72 | 65 61 74 65 64 2e 20 20 |s are cr|eated. |
|00000b20| 57 65 20 63 61 6e 20 65 | 61 73 69 6c 79 20 63 68 |We can e|asily ch|
|00000b30| 61 6e 67 65 20 6f 6e 6c | 79 20 74 68 65 20 61 74 |ange onl|y the at|
|00000b40| 74 72 69 62 75 74 65 73 | 20 74 68 61 74 20 77 65 |tributes| that we|
|00000b50| 20 61 72 65 20 63 6f 6e | 63 65 72 6e 65 64 20 77 | are con|cerned w|
|00000b60| 69 74 68 2e 20 20 54 68 | 65 20 62 6f 74 74 6f 6d |ith. Th|e bottom|
|00000b70| 20 6c 69 6e 65 20 74 68 | 61 74 20 69 73 20 69 74 | line th|at is it|
|00000b80| 20 69 73 20 76 65 72 79 | 20 65 61 73 79 20 74 6f | is very| easy to|
|00000b90| 20 63 75 73 74 6f 6d 69 | 7a 65 20 6f 62 6a 65 63 | customi|ze objec|
|00000ba0| 74 73 20 74 6f 20 6d 65 | 65 74 20 61 70 70 6c 69 |ts to me|et appli|
|00000bb0| 63 61 74 69 6f 6e 20 73 | 70 65 63 69 66 69 63 20 |cation s|pecific |
|00000bc0| 6e 65 65 64 73 20 77 69 | 74 68 6f 75 74 20 61 20 |needs wi|thout a |
|00000bd0| 6c 6f 74 20 6f 66 20 74 | 69 6d 65 20 6f 72 20 63 |lot of t|ime or c|
|00000be0| 6f 64 65 2e 0d 04 02 0d | 4f 6e 65 20 65 78 61 6d |ode.....|One exam|
|00000bf0| 70 6c 65 20 6f 66 20 68 | 6f 77 20 70 6f 6c 79 6d |ple of h|ow polym|
|00000c00| 6f 72 70 68 69 73 6d 20 | 61 6c 6c 6f 77 73 20 70 |orphism |allows p|
|00000c10| 72 6f 67 72 61 6d 73 20 | 74 6f 20 62 65 20 65 61 |rograms |to be ea|
|00000c20| 73 69 6c 79 20 6d 61 69 | 6e 74 61 69 6e 65 64 20 |sily mai|ntained |
|00000c30| 69 73 20 69 6e 20 74 68 | 65 20 44 72 61 77 20 70 |is in th|e Draw p|
|00000c40| 72 6f 67 72 61 6d 20 74 | 68 61 74 20 69 73 20 73 |rogram t|hat is s|
|00000c50| 75 70 70 6c 69 65 64 20 | 77 69 74 68 20 65 76 65 |upplied |with eve|
|00000c60| 72 79 20 4e 65 58 54 20 | 73 79 73 74 65 6d 2e 20 |ry NeXT |system. |
|00000c70| 20 59 6f 75 20 77 69 6c | 6c 20 66 69 6e 64 20 74 | You wil|l find t|
|00000c80| 68 61 74 20 74 68 65 72 | 65 20 69 73 20 61 20 70 |hat ther|e is a p|
|00000c90| 72 6f 74 6f 63 6f 6c 20 | 74 68 61 74 20 68 61 73 |rotocol |that has|
|00000ca0| 20 62 65 65 6e 20 65 73 | 74 61 62 6c 69 73 68 65 | been es|tablishe|
|00000cb0| 64 20 66 6f 72 20 61 6c | 6c 20 6f 62 6a 65 63 74 |d for al|l object|
|00000cc0| 73 20 74 68 61 74 20 74 | 68 65 20 65 64 69 74 6f |s that t|he edito|
|00000cd0| 72 20 63 61 6e 20 6d 61 | 6e 69 70 75 6c 61 74 65 |r can ma|nipulate|
|00000ce0| 2e 20 20 59 6f 75 20 6d | 75 73 74 20 62 65 20 61 |. You m|ust be a|
|00000cf0| 62 6c 65 20 74 6f 20 63 | 72 65 61 74 65 20 6f 62 |ble to c|reate ob|
|00000d00| 6a 65 63 74 73 2c 20 72 | 65 61 64 20 74 68 65 20 |jects, r|ead the |
|00000d10| 6f 62 6a 65 63 74 73 20 | 6f 66 66 20 74 68 65 20 |objects |off the |
|00000d20| 64 69 73 6b 2c 20 64 72 | 61 77 20 74 68 65 20 6f |disk, dr|aw the o|
|00000d30| 62 6a 65 63 74 73 20 6f | 6e 20 74 68 65 20 73 63 |bjects o|n the sc|
|00000d40| 72 65 65 6e 20 61 6e 64 | 20 62 65 20 61 62 6c 65 |reen and| be able|
|00000d50| 20 74 6f 20 77 72 69 74 | 65 20 74 68 65 20 6f 62 | to writ|e the ob|
|00000d60| 6a 65 63 74 73 20 62 61 | 63 6b 20 6f 6e 74 6f 20 |jects ba|ck onto |
|00000d70| 64 69 73 6b 2e 20 20 49 | 66 20 79 6f 75 20 77 61 |disk. I|f you wa|
|00000d80| 6e 74 65 64 20 74 6f 20 | 62 65 20 61 62 6c 65 20 |nted to |be able |
|00000d90| 74 6f 20 65 64 69 74 20 | 73 6f 6d 65 20 6f 74 68 |to edit |some oth|
|00000da0| 65 72 20 6f 62 6a 65 63 | 74 73 2c 20 73 75 63 68 |er objec|ts, such|
|00000db0| 20 61 73 20 70 69 65 20 | 63 68 61 72 74 73 2c 20 | as pie |charts, |
|00000dc0| 62 61 72 20 63 68 61 72 | 74 73 20 6f 72 20 58 2d |bar char|ts or X-|
|00000dd0| 59 20 70 6c 6f 74 73 20 | 6f 66 20 64 61 74 61 20 |Y plots |of data |
|00000de0| 74 68 65 79 20 63 6f 75 | 6c 64 20 65 61 73 69 6c |they cou|ld easil|
|00000df0| 79 20 62 65 20 61 64 64 | 65 64 20 74 6f 20 74 68 |y be add|ed to th|
|00000e00| 65 20 44 72 61 77 20 70 | 72 6f 67 72 61 6d 20 77 |e Draw p|rogram w|
|00000e10| 69 74 68 6f 75 74 20 63 | 68 61 6e 67 69 6e 67 20 |ithout c|hanging |
|00000e20| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 73 6f 75 |the orig|inal sou|
|00000e30| 72 63 65 21 20 20 59 6f | 75 20 73 69 6d 70 6c 79 |rce! Yo|u simply|
|00000e40| 20 61 64 64 20 74 68 65 | 20 66 69 6c 65 73 20 74 | add the| files t|
|00000e50| 6f 20 74 68 65 20 44 72 | 61 77 20 64 69 72 65 63 |o the Dr|aw direc|
|00000e60| 74 6f 72 79 20 61 6e 64 | 20 69 6d 70 6c 65 6d 65 |tory and| impleme|
|00000e70| 6e 74 20 74 68 65 20 63 | 72 65 61 74 65 2c 20 64 |nt the c|reate, d|
|00000e80| 72 61 77 2c 20 72 65 61 | 64 20 61 6e 64 20 77 72 |raw, rea|d and wr|
|00000e90| 69 74 65 20 6d 65 74 68 | 6f 64 73 20 61 6e 64 20 |ite meth|ods and |
|00000ea0| 79 6f 75 20 68 61 76 65 | 20 61 64 64 65 64 20 61 |you have| added a|
|00000eb0| 20 6e 65 77 20 6f 62 6a | 65 63 74 20 74 6f 20 79 | new obj|ect to y|
|00000ec0| 6f 75 72 20 64 72 61 77 | 20 70 72 6f 67 72 61 6d |our draw| program|
|00000ed0| 2e 20 20 4f 6e 63 65 20 | 61 67 61 69 6e 20 77 65 |. Once |again we|
|00000ee0| 20 73 65 65 20 74 68 61 | 74 20 77 65 20 63 61 6e | see tha|t we can|
|00000ef0| 20 65 61 73 69 6c 79 20 | 63 75 73 74 6f 6d 69 7a | easily |customiz|
|00000f00| 65 20 70 72 6f 67 72 61 | 6d 73 20 62 79 20 75 73 |e progra|ms by us|
|00000f10| 69 6e 67 20 6f 62 6a 65 | 63 74 20 6f 72 69 65 6e |ing obje|ct orien|
|00000f20| 74 65 64 20 70 72 6f 67 | 72 61 6d 6d 69 6e 67 20 |ted prog|ramming |
|00000f30| 74 65 63 68 6e 69 71 75 | 65 73 2e 20 20 42 79 20 |techniqu|es. By |
|00000f40| 65 78 74 65 6e 64 69 6e | 67 20 70 72 6f 67 72 61 |extendin|g progra|
|00000f50| 6d 73 20 6c 69 6b 65 20 | 44 72 61 77 2c 20 75 73 |ms like |Draw, us|
|00000f60| 65 72 73 20 64 6f 6e 27 | 74 20 68 61 76 65 20 74 |ers don'|t have t|
|00000f70| 6f 20 73 74 61 72 74 20 | 66 72 6f 6d 20 73 63 72 |o start |from scr|
|00000f80| 61 74 63 68 20 61 6e 64 | 20 74 68 65 20 74 6f 74 |atch and| the tot|
|00000f90| 61 6c 20 61 6d 6f 75 6e | 74 20 6f 66 20 6e 65 77 |al amoun|t of new|
|00000fa0| 20 63 6f 64 65 20 74 68 | 65 79 20 6d 75 73 74 20 | code th|ey must |
|00000fb0| 6d 61 69 6e 74 61 69 6e | 20 69 73 20 6d 75 63 68 |maintain| is much|
|00000fc0| 20 6c 65 73 73 20 74 68 | 61 6e 20 69 66 20 74 68 | less th|an if th|
|00000fd0| 65 79 20 73 74 61 72 74 | 65 64 20 66 72 6f 6d 20 |ey start|ed from |
|00000fe0| 73 63 72 61 74 63 68 2e | 0d 02 21 0d 54 68 65 20 |scratch.|..!.The |
|00000ff0| 77 6f 72 64 20 70 72 6f | 74 6f 63 6f 6c 20 69 73 |word pro|tocol is|
|00001000| 20 76 65 72 79 20 66 61 | 6d 69 6c 69 61 72 20 74 | very fa|miliar t|
|00001010| 6f 20 70 65 6f 70 6c 65 | 20 77 68 6f 20 63 72 65 |o people| who cre|
|00001020| 61 74 65 20 64 61 74 61 | 20 63 6f 6d 6d 75 6e 69 |ate data| communi|
|00001030| 63 61 74 69 6f 6e 20 6e | 65 74 77 6f 72 6b 73 2e |cation n|etworks.|
|00001040| 20 20 54 68 69 73 20 73 | 68 6f 75 6c 64 20 63 6f | This s|hould co|
|00001050| 6d 65 20 61 73 20 6e 6f | 20 73 75 72 70 72 69 73 |me as no| surpris|
|00001060| 65 20 73 69 6e 63 65 20 | 74 68 61 74 20 69 73 20 |e since |that is |
|00001070| 65 73 73 65 6e 74 69 61 | 6c 6c 79 20 77 68 61 74 |essentia|lly what|
|00001080| 20 77 65 20 61 72 65 20 | 64 6f 69 6e 67 20 77 69 | we are |doing wi|
|00001090| 74 68 20 6f 62 6a 65 63 | 74 73 2e 20 20 57 65 20 |th objec|ts. We |
|000010a0| 61 72 65 20 63 72 65 61 | 74 69 6e 67 20 61 20 6e |are crea|ting a n|
|000010b0| 65 74 77 6f 72 6b 69 6e | 67 20 6d 65 63 68 61 6e |etworkin|g mechan|
|000010c0| 69 73 6d 20 66 6f 72 20 | 74 68 65 6d 20 74 6f 20 |ism for |them to |
|000010d0| 65 78 63 68 61 6e 67 65 | 20 6d 65 73 73 61 67 65 |exchange| message|
|000010e0| 73 2e 20 20 41 6c 74 68 | 6f 75 67 68 20 77 65 20 |s. Alth|ough we |
|000010f0| 75 73 75 61 6c 6c 79 20 | 74 68 69 6e 6b 20 6f 66 |usually |think of|
|00001100| 20 6d 65 73 73 61 67 65 | 73 20 69 6e 20 61 20 4f | message|s in a O|
|00001110| 62 6a 65 63 74 69 76 65 | 20 43 20 70 72 6f 67 72 |bjective| C progr|
|00001120| 61 6d 20 6f 6e 6c 79 20 | 63 6f 6d 6d 75 6e 69 63 |am only |communic|
|00001130| 61 74 69 6e 67 20 77 69 | 74 68 20 6f 74 68 65 72 |ating wi|th other|
|00001140| 20 6f 62 6a 65 63 74 73 | 20 77 69 74 68 69 6e 20 | objects| within |
|00001150| 74 68 61 74 20 70 72 6f | 67 72 61 6d 20 74 68 65 |that pro|gram the|
|00001160| 72 65 20 61 72 65 20 6d | 61 6e 79 20 77 61 79 73 |re are m|any ways|
|00001170| 20 66 6f 72 20 6d 65 73 | 73 61 67 65 73 20 74 6f | for mes|sages to|
|00001180| 20 66 6c 6f 77 20 62 65 | 74 77 65 65 6e 20 70 72 | flow be|tween pr|
|00001190| 6f 67 72 61 6d 73 2e 20 | 20 54 68 65 73 65 20 70 |ograms. | These p|
|000011a0| 72 6f 67 72 61 6d 73 20 | 63 61 6e 20 62 65 20 6f |rograms |can be o|
|000011b0| 6e 20 64 69 66 66 65 72 | 65 6e 74 20 70 72 6f 63 |n differ|ent proc|
|000011c0| 65 73 73 6f 72 73 20 77 | 69 74 68 20 64 69 66 66 |essors w|ith diff|
|000011d0| 65 72 65 6e 74 20 69 6e | 73 74 72 75 63 74 69 6f |erent in|structio|
|000011e0| 6e 20 73 65 74 73 20 6f | 6e 20 6c 6f 63 61 6c 20 |n sets o|n local |
|000011f0| 61 73 20 77 65 6c 6c 20 | 61 73 20 72 65 6d 6f 74 |as well |as remot|
|00001200| 65 20 6e 65 74 77 6f 72 | 6b 73 2e 0d 00 26 0d 4d |e networ|ks...&.M|
|00001210| 65 73 73 61 67 69 6e 67 | 20 61 6e 64 20 44 79 6e |essaging| and Dyn|
|00001220| 61 6d 69 63 20 42 69 6e | 64 69 6e 67 20 35 2d fd |amic Bin|ding 5-.|
|00001230| 00 f7 0d 0d 02 16 0d fc | 00 6b 02 0a 00 6b 02 0e |........|.k...k..|
|00001240| 02 1c 06 30 f7 ff 00 15 | 0a 01 f7 46 69 67 75 72 |...0....|...Figur|
|00001250| 65 20 35 2d 31 3a 20 57 | 72 69 74 74 65 6e 20 6e |e 5-1: W|ritten n|
|00001260| 6f 74 65 20 28 6c 65 66 | 74 29 20 63 6f 6d 70 61 |ote (lef|t) compa|
|00001270| 72 65 64 20 74 6f 20 61 | 20 6d 65 73 73 61 67 65 |red to a| message|
|00001280| 20 73 74 61 74 65 6d 65 | 6e 74 2e ff 00 15 0a 00 | stateme|nt......|
|00001290| f7 0d fc 00 6b 02 0a 00 | 6b 00 0e 02 1c 06 30 f7 |....k...|k.....0.|
|000012a0| 0d 54 68 65 20 73 61 6d | 70 6c 65 20 6f 6e 20 74 |.The sam|ple on t|
|000012b0| 68 65 20 6c 65 66 74 20 | 69 73 20 61 20 73 61 6d |he left |is a sam|
|000012c0| 70 6c 65 20 6e 6f 74 65 | 20 79 6f 75 20 6d 69 67 |ple note| you mig|
|000012d0| 68 74 20 6c 65 61 76 65 | 20 69 6e 20 61 20 70 65 |ht leave| in a pe|
|000012e0| 72 73 6f 6e 27 73 20 6d | 61 69 6c 2d 62 6f 78 2e |rson's m|ail-box.|
|000012f0| 20 20 49 74 20 63 6f 6e | 74 61 69 6e 73 20 69 74 | It con|tains it|
|00001300| 65 6d 73 20 6c 69 6b 65 | 20 77 68 6f 20 74 68 65 |ems like| who the|
|00001310| 20 6d 65 73 73 61 67 65 | 20 69 73 20 74 6f 20 28 | message| is to (|
|00001320| 53 75 65 29 2c 20 77 68 | 61 74 20 61 63 74 69 6f |Sue), wh|at actio|
|00001330| 6e 20 69 73 20 62 65 69 | 6e 67 20 72 65 71 75 65 |n is bei|ng reque|
|00001340| 73 74 65 64 20 28 6d 65 | 65 74 69 6e 67 20 66 6f |sted (me|eting fo|
|00001350| 72 20 6c 75 6e 63 68 29 | 20 61 6e 64 20 74 68 65 |r lunch)| and the|
|00001360| 20 61 72 67 75 6d 65 6e | 74 73 20 28 6d 65 65 74 | argumen|ts (meet|
|00001370| 20 61 74 20 6e 6f 6f 6e | 20 61 6e 64 20 77 68 6f | at noon| and who|
|00001380| 20 74 68 65 20 6e 6f 74 | 65 20 69 73 20 66 72 6f | the not|e is fro|
|00001390| 6d 29 2e 20 20 54 68 65 | 20 6d 65 73 73 61 67 65 |m). The| message|
|000013a0| 20 73 74 61 74 65 6d 65 | 6e 74 20 74 68 61 74 20 | stateme|nt that |
|000013b0| 77 6f 75 6c 64 20 63 6f | 72 72 65 73 70 6f 6e 64 |would co|rrespond|
|000013c0| 20 74 6f 20 74 68 69 73 | 20 73 74 61 74 65 6d 65 | to this| stateme|
|000013d0| 6e 74 20 69 73 20 76 65 | 72 79 20 73 69 6d 69 6c |nt is ve|ry simil|
|000013e0| 61 72 2e 20 20 54 68 65 | 20 65 78 61 6d 70 6c 65 |ar. The| example|
|000013f0| 20 6f 6e 20 74 68 65 20 | 72 69 67 68 74 20 63 6f | on the |right co|
|00001400| 6e 74 61 69 6e 73 20 74 | 68 65 20 6d 65 73 73 61 |ntains t|he messa|
|00001410| 67 65 20 73 74 61 74 65 | 6d 65 6e 74 3a 0d 0d ff |ge state|ment:...|
|00001420| 00 16 0c 00 f7 5b 73 75 | 65 20 64 6f 4c 75 6e 63 |.....[su|e doLunc|
|00001430| 68 41 74 3a 31 32 30 30 | 20 77 69 74 68 3a 62 65 |hAt:1200| with:be|
|00001440| 74 74 79 5d 3b ff 00 16 | 0a 00 f7 0d 03 40 ff 00 |tty];...|.....@..|
|00001450| 15 0a 00 f7 0d 4e 6f 74 | 65 20 74 68 61 74 20 74 |.....Not|e that t|
|00001460| 68 65 20 6d 65 73 73 61 | 67 65 20 73 74 61 74 65 |he messa|ge state|
|00001470| 6d 65 6e 74 20 69 73 20 | 74 72 61 64 69 74 69 6f |ment is |traditio|
|00001480| 6e 61 6c 6c 79 20 65 6e | 63 6c 6f 73 65 64 20 69 |nally en|closed i|
|00001490| 6e 20 73 71 75 61 72 65 | 20 62 72 61 63 6b 65 74 |n square| bracket|
|000014a0| 73 20 61 6e 64 20 65 6e | 64 73 20 77 69 74 68 20 |s and en|ds with |
|000014b0| 61 20 73 65 6d 69 63 6f | 6c 6f 6e 2e 20 20 54 68 |a semico|lon. Th|
|000014c0| 65 20 74 61 72 67 65 74 | 20 6f 66 20 74 68 65 20 |e target| of the |
|000014d0| 6d 65 73 73 61 67 65 20 | 69 73 20 61 6c 77 61 79 |message |is alway|
|000014e0| 73 20 74 68 65 20 66 69 | 72 73 74 20 61 72 67 75 |s the fi|rst argu|
|000014f0| 6d 65 6e 74 2e 20 20 49 | 6e 20 74 68 69 73 20 63 |ment. I|n this c|
|00001500| 61 73 65 20 74 68 65 20 | 74 61 72 67 65 74 20 6f |ase the |target o|
|00001510| 62 6a 65 63 74 20 6f 72 | 20 74 68 65 20 64 65 73 |bject or| the des|
|00001520| 74 69 6e 61 74 69 6f 6e | 20 6f 62 6a 65 63 74 20 |tination| object |
|00001530| 69 73 20 63 61 6c 6c 65 | 64 20 22 73 75 65 22 2e |is calle|d "sue".|
|00001540| 20 20 54 68 65 20 73 65 | 63 6f 6e 64 20 63 6f 6d | The se|cond com|
|00001550| 70 6f 6e 65 6e 74 20 69 | 73 20 74 68 65 20 6e 61 |ponent i|s the na|
|00001560| 6d 65 20 6f 66 20 74 68 | 65 20 6d 65 74 68 6f 64 |me of th|e method|
|00001570| 20 74 68 61 74 20 77 65 | 20 77 69 73 68 20 73 75 | that we| wish su|
|00001580| 65 20 65 78 65 63 75 74 | 65 2e 20 20 49 6e 20 74 |e execut|e. In t|
|00001590| 68 69 73 20 63 61 73 65 | 20 74 68 65 20 61 63 74 |his case| the act|
|000015a0| 75 61 6c 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |ual name| of the |
|000015b0| 6d 65 73 73 61 67 65 20 | 69 73 20 22 ff 00 16 0a |message |is "....|
|000015c0| 00 f7 64 6f 4c 75 6e 63 | 68 41 74 3a 77 69 74 68 |..doLunc|hAt:with|
|000015d0| 3a ff 00 15 0a 00 f7 22 | 2e 20 20 4e 6f 74 65 20 |:......"|. Note |
|000015e0| 74 68 61 74 20 74 68 65 | 20 63 6f 6c 6f 6e 73 20 |that the| colons |
|000015f0| 61 72 65 20 61 63 74 75 | 61 6c 6c 79 20 70 61 72 |are actu|ally par|
|00001600| 74 20 6f 66 20 74 68 65 | 20 6e 61 6d 65 2e 20 20 |t of the| name. |
|00001610| 54 68 69 73 20 74 65 6c | 6c 73 20 74 68 65 20 63 |This tel|ls the c|
|00001620| 6f 6d 70 69 6c 65 72 73 | 20 74 6f 20 63 68 65 63 |ompilers| to chec|
|00001630| 6b 20 66 6f 72 20 61 72 | 67 75 6d 65 6e 74 73 2e |k for ar|guments.|
|00001640| 20 20 49 6e 20 74 68 69 | 73 20 77 61 79 20 77 65 | In thi|s way we|
|00001650| 20 63 61 6e 20 61 73 73 | 75 72 65 20 74 68 61 74 | can ass|ure that|
|00001660| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 6e 75 6d | the cor|rect num|
|00001670| 62 65 72 20 6f 66 20 61 | 72 67 75 6d 65 6e 74 73 |ber of a|rguments|
|00001680| 20 61 72 65 20 62 65 69 | 6e 67 20 73 65 6e 74 20 | are bei|ng sent |
|00001690| 2c 6f 66 20 74 68 65 20 | 63 6f 72 72 65 63 74 20 |,of the |correct |
|000016a0| 74 79 70 65 2c 20 61 6e | 64 20 69 6e 20 74 68 65 |type, an|d in the|
|000016b0| 20 63 6f 72 72 65 63 74 | 20 6f 72 64 65 72 2e 20 | correct| order. |
|000016c0| 20 54 68 65 20 63 6f 6d | 70 69 6c 65 72 73 20 63 | The com|pilers c|
|000016d0| 61 72 65 66 75 6c 6c 79 | 20 63 72 6f 73 73 20 63 |arefully| cross c|
|000016e0| 68 65 63 6b 20 74 68 65 | 20 74 79 70 65 73 20 28 |heck the| types (|
|000016f0| 69 6e 74 65 67 65 72 2c | 20 66 6c 6f 61 74 69 6e |integer,| floatin|
|00001700| 67 20 70 6f 69 6e 74 20 | 6f 72 20 73 74 69 6e 67 |g point |or sting|
|00001710| 73 29 20 6f 66 20 65 61 | 63 68 20 61 72 67 75 6d |s) of ea|ch argum|
|00001720| 65 6e 74 20 77 68 65 6e | 20 74 68 65 20 70 72 6f |ent when| the pro|
|00001730| 67 72 61 6d 20 63 6f 6d | 70 69 6c 65 73 20 73 6f |gram com|piles so|
|00001740| 20 74 68 61 74 20 62 79 | 20 74 68 65 20 74 69 6d | that by| the tim|
|00001750| 65 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 72 75 |e the pr|ogram ru|
|00001760| 6e 73 20 77 65 20 61 72 | 65 20 61 73 73 75 72 65 |ns we ar|e assure|
|00001770| 64 20 6f 66 20 67 65 74 | 74 69 6e 67 20 63 6f 72 |d of get|ting cor|
|00001780| 72 65 63 74 20 72 65 73 | 75 6c 74 73 2e 0d 04 6b |rect res|ults...k|
|00001790| 0d fc 00 6b 02 2d 00 6b | 02 0e 02 1c 06 30 f7 ff |...k.-.k|.....0..|
|000017a0| 00 15 0a 01 f7 46 69 67 | 75 72 65 20 35 2d 32 3a |.....Fig|ure 5-2:|
|000017b0| 20 73 65 6e 64 69 6e 67 | 20 61 20 22 74 61 6b 65 | sending| a "take|
|000017c0| 46 6c 6f 61 74 56 61 6c | 75 65 3a 22 20 6d 65 73 |FloatVal|ue:" mes|
|000017d0| 73 61 67 65 20 66 72 6f | 6d 20 61 20 53 6c 69 64 |sage fro|m a Slid|
|000017e0| 65 72 20 74 6f 20 61 20 | 54 65 78 74 43 65 6c 6c |er to a |TextCell|
|000017f0| 20 6f 62 6a 65 63 74 ff | 00 15 0a 00 f7 0d fc 00 | object.|........|
|00001800| 6b 02 0a 00 6b 00 0e 02 | 1c 06 30 f7 0d 0d 49 6e |k...k...|..0...In|
|00001810| 20 74 68 69 73 20 63 61 | 73 65 20 74 68 65 20 73 | this ca|se the s|
|00001820| 6c 69 64 65 72 20 69 73 | 20 74 68 65 20 73 6f 75 |lider is| the sou|
|00001830| 72 63 65 20 6f 66 20 74 | 68 65 20 6d 65 73 73 61 |rce of t|he messa|
|00001840| 67 65 20 61 6e 64 20 74 | 68 65 20 74 65 78 74 43 |ge and t|he textC|
|00001850| 65 6c 6c 20 69 73 20 74 | 68 65 20 74 61 72 67 65 |ell is t|he targe|
|00001860| 74 2e 20 20 41 66 74 65 | 72 20 79 6f 75 20 72 65 |t. Afte|r you re|
|00001870| 6c 65 61 73 65 20 74 68 | 65 20 6d 6f 75 73 65 20 |lease th|e mouse |
|00001880| 62 75 74 74 6f 6e 20 6f | 76 65 72 20 74 68 65 20 |button o|ver the |
|00001890| 74 65 78 74 20 6f 62 6a | 65 63 74 20 79 6f 75 20 |text obj|ect you |
|000018a0| 77 69 6c 6c 20 73 65 65 | 20 74 68 65 20 69 6e 73 |will see| the ins|
|000018b0| 70 65 63 74 6f 72 20 61 | 70 70 65 61 72 20 69 6e |pector a|ppear in|
|000018c0| 20 74 68 65 20 6c 6f 77 | 65 72 20 72 69 67 68 74 | the low|er right|
|000018d0| 20 63 6f 72 6e 65 72 20 | 6f 66 20 74 68 65 20 73 | corner |of the s|
|000018e0| 63 72 65 65 6e 2e 20 20 | 49 74 20 77 69 6c 6c 20 |creen. |It will |
|000018f0| 64 69 73 70 6c 61 79 20 | 61 20 6c 69 73 74 20 6f |display |a list o|
|00001900| 66 20 6d 65 74 68 6f 64 | 73 20 74 68 61 74 20 74 |f method|s that t|
|00001910| 68 65 20 74 65 78 74 43 | 65 6c 6c 20 63 61 6e 20 |he textC|ell can |
|00001920| 72 65 73 70 6f 6e 64 20 | 74 6f 2e 20 20 49 6e 20 |respond |to. In |
|00001930| 74 68 69 73 20 63 61 73 | 65 20 73 69 6e 63 65 20 |this cas|e since |
|00001940| 74 68 65 20 73 6c 69 64 | 65 72 20 73 65 6e 64 73 |the slid|er sends|
|00001950| 20 61 20 66 6c 6f 61 74 | 69 6e 67 20 70 6f 69 6e | a float|ing poin|
|00001960| 74 20 6e 75 6d 62 65 72 | 20 77 65 20 77 61 6e 74 |t number| we want|
|00001970| 20 74 6f 20 73 65 6c 65 | 63 74 20 74 68 65 20 22 | to sele|ct the "|
|00001980| 74 61 6b 65 46 6c 6f 61 | 74 56 61 6c 75 65 3a 22 |takeFloa|tValue:"|
|00001990| 20 66 72 6f 6d 20 74 68 | 65 20 72 69 67 68 74 20 | from th|e right |
|000019a0| 63 6f 6c 75 6d 6e 20 6f | 66 20 74 68 65 20 69 6e |column o|f the in|
|000019b0| 73 70 65 63 74 6f 72 20 | 61 6e 64 20 74 68 65 6e |spector |and then|
|000019c0| 20 73 65 6c 65 63 74 20 | 74 68 65 20 22 43 6f 6e | select |the "Con|
|000019d0| 6e 65 63 74 22 20 62 75 | 74 74 6f 6e 20 69 6e 20 |nect" bu|tton in |
|000019e0| 74 68 65 20 6c 6f 77 65 | 72 20 72 69 67 68 74 20 |the lowe|r right |
|000019f0| 68 61 6e 64 20 63 6f 72 | 6e 65 72 20 6f 66 20 74 |hand cor|ner of t|
|00001a00| 68 65 20 69 6e 73 70 65 | 63 74 6f 72 20 77 69 6e |he inspe|ctor win|
|00001a10| 64 6f 77 2e 20 20 41 20 | 73 6d 61 6c 6c 20 6b 6e |dow. A |small kn|
|00001a20| 6f 62 20 73 68 6f 75 6c | 64 20 6e 6f 77 20 61 70 |ob shoul|d now ap|
|00001a30| 70 65 61 72 20 6e 65 78 | 74 20 74 6f 20 74 68 65 |pear nex|t to the|
|00001a40| 20 73 65 6c 65 63 74 65 | 64 20 6d 65 74 68 6f 64 | selecte|d method|
|00001a50| 20 69 6e 64 69 63 61 74 | 69 6e 67 20 74 68 61 74 | indicat|ing that|
|00001a60| 20 74 68 65 20 63 6f 6e | 6e 65 63 74 69 6f 6e 20 | the con|nection |
|00001a70| 68 61 73 20 62 65 65 6e | 20 6d 61 64 65 2e 20 20 |has been| made. |
|00001a80| 59 6f 75 20 63 61 6e 20 | 6e 6f 77 20 74 65 73 74 |You can |now test|
|00001a90| 20 79 6f 75 72 20 63 6f | 6e 6e 65 63 74 69 6f 6e | your co|nnection|
|00001aa0| 20 62 79 20 73 65 6c 65 | 63 74 69 6e 67 20 74 68 | by sele|cting th|
|00001ab0| 65 20 22 54 65 73 74 20 | 49 6e 74 65 72 66 61 63 |e "Test |Interfac|
|00001ac0| 65 22 20 6f 70 74 69 6f | 6e 20 66 72 6f 6d 20 74 |e" optio|n from t|
|00001ad0| 68 65 20 46 69 6c 65 20 | 6d 61 69 6e 20 6d 65 6e |he File |main men|
|00001ae0| 75 2e 20 20 54 68 69 73 | 20 73 69 6d 75 6c 61 74 |u. This| simulat|
|00001af0| 65 73 20 74 68 65 20 75 | 73 65 72 20 61 63 74 75 |es the u|ser actu|
|00001b00| 61 6c 6c 79 20 72 75 6e | 6e 69 6e 67 20 74 68 65 |ally run|ning the|
|00001b10| 20 70 72 6f 67 72 61 6d | 20 69 6e 74 65 72 66 61 | program| interfa|
|00001b20| 63 65 20 74 68 61 74 20 | 79 6f 75 20 68 61 76 65 |ce that |you have|
|00001b30| 20 6a 75 73 74 20 63 72 | 65 61 74 65 64 2e 20 20 | just cr|eated. |
|00001b40| 41 66 74 65 72 20 61 6c | 6c 20 74 68 65 20 49 6e |After al|l the In|
|00001b50| 74 65 72 66 61 63 65 20 | 42 75 69 6c 64 65 72 20 |terface |Builder |
|00001b60| 77 69 6e 64 6f 77 73 20 | 64 69 73 61 70 70 65 61 |windows |disappea|
|00001b70| 72 20 79 6f 75 20 77 69 | 6c 6c 20 73 65 65 20 6f |r you wi|ll see o|
|00001b80| 6e 6c 79 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |nly your| program|
|00001b90| 27 73 20 6d 61 69 6e 20 | 6d 65 6e 75 20 61 6e 64 |'s main |menu and|
|00001ba0| 20 77 69 6e 64 6f 77 2e | 20 20 42 79 20 6d 6f 76 | window.| By mov|
|00001bb0| 69 6e 67 20 74 68 65 20 | 73 6c 69 64 65 72 20 79 |ing the |slider y|
|00001bc0| 6f 75 20 77 69 6c 6c 20 | 6e 6f 77 20 62 65 67 69 |ou will |now begi|
|00001bd0| 6e 20 73 65 6e 64 69 6e | 67 20 6d 65 73 73 61 67 |n sendin|g messag|
|00001be0| 65 73 20 74 6f 20 74 68 | 65 20 74 65 78 74 43 65 |es to th|e textCe|
|00001bf0| 6c 6c 20 6f 62 6a 65 63 | 74 2e 0d 03 bb 0d 54 68 |ll objec|t.....Th|
|00001c00| 65 20 6d 65 73 73 61 67 | 65 20 73 74 61 74 65 6d |e messag|e statem|
|00001c10| 65 6e 74 20 69 73 20 76 | 65 72 79 20 70 6f 77 65 |ent is v|ery powe|
|00001c20| 72 66 75 6c 3a 20 69 74 | 20 69 73 20 74 68 65 20 |rful: it| is the |
|00001c30| 6f 6e 6c 79 20 73 74 61 | 74 65 6d 65 6e 74 20 74 |only sta|tement t|
|00001c40| 68 61 74 20 77 65 20 6e | 65 65 64 20 74 6f 20 61 |hat we n|eed to a|
|00001c50| 64 64 20 74 6f 20 61 20 | 6c 61 6e 67 75 61 67 65 |dd to a |language|
|00001c60| 20 74 6f 20 6d 61 6b 65 | 20 69 74 20 22 6f 62 6a | to make| it "obj|
|00001c70| 65 63 74 69 76 65 22 2e | 20 20 54 68 65 73 65 20 |ective".| These |
|00001c80| 73 74 61 74 65 6d 65 6e | 74 73 20 68 61 76 65 20 |statemen|ts have |
|00001c90| 62 65 65 6e 20 61 64 64 | 65 64 20 74 6f 20 43 2c |been add|ed to C,|
|00001ca0| 20 46 4f 52 54 52 41 4e | f9 04 f7 ff 00 15 08 00 | FORTRAN|........|
|00001cb0| f7 f4 f9 00 f7 f9 00 f7 | ff 00 15 0a 00 f7 20 61 |........|...... a|
|00001cc0| 6e 64 20 74 68 65 72 65 | 20 69 73 20 6a 75 73 74 |nd there| is just|
|00001cd0| 69 66 69 63 61 74 69 6f | 6e 20 74 6f 20 63 72 65 |ificatio|n to cre|
|00001ce0| 61 74 69 6e 67 20 6d 65 | 73 73 61 67 69 6e 67 20 |ating me|ssaging |
|00001cf0| 65 78 74 65 6e 73 69 6f | 6e 73 20 74 6f 20 6c 61 |extensio|ns to la|
|00001d00| 6e 67 75 61 67 65 73 20 | 73 75 63 68 20 61 73 20 |nguages |such as |
|00001d10| 43 2b 2b 2c 20 4c 49 53 | 50 2c 20 50 52 4f 4c 4f |C++, LIS|P, PROLO|
|00001d20| 47 2c 20 50 61 73 63 61 | 6c 2c 20 44 53 50 20 41 |G, Pasca|l, DSP A|
|00001d30| 73 73 65 6d 62 6c 65 72 | 20 61 6e 64 20 65 76 65 |ssembler| and eve|
|00001d40| 6e 20 43 4f 42 4f 4c 2e | 20 20 42 79 20 61 64 64 |n COBOL.| By add|
|00001d50| 69 6e 67 20 6d 65 73 73 | 61 67 69 6e 67 20 74 6f |ing mess|aging to|
|00001d60| 20 74 68 65 73 65 20 6c | 61 6e 67 75 61 67 65 73 | these l|anguages|
|00001d70| 2c 20 64 65 76 65 6c 6f | 70 65 72 73 20 63 6f 75 |, develo|pers cou|
|00001d80| 6c 64 20 72 65 74 61 69 | 6e 20 74 68 65 69 72 20 |ld retai|n their |
|00001d90| 69 6e 76 65 6e 74 6d 65 | 6e 74 20 69 6e 20 74 68 |inventme|nt in th|
|00001da0| 65 69 72 20 63 75 72 72 | 65 6e 74 20 73 6f 66 74 |eir curr|ent soft|
|00001db0| 77 61 72 65 20 62 61 73 | 65 20 61 6e 64 20 73 74 |ware bas|e and st|
|00001dc0| 69 6c 6c 20 70 72 6f 76 | 69 64 65 20 61 20 4e 65 |ill prov|ide a Ne|
|00001dd0| 78 74 53 74 65 70 20 69 | 6e 74 65 72 66 61 63 65 |xtStep i|nterface|
|00001de0| 20 74 6f 20 74 68 65 69 | 72 20 6f 6c 64 65 72 20 | to thei|r older |
|00001df0| 70 72 6f 67 72 61 6d 73 | 2e 20 20 41 64 64 69 6e |programs|. Addin|
|00001e00| 67 20 6d 65 73 73 61 67 | 65 20 73 74 61 74 65 6d |g messag|e statem|
|00001e10| 65 6e 74 73 20 74 6f 20 | 61 20 6c 61 6e 67 75 61 |ents to |a langua|
|00001e20| 67 65 20 63 61 6e 20 62 | 65 20 64 6f 6e 65 20 69 |ge can b|e done i|
|00001e30| 6e 20 61 20 22 70 72 65 | 2d 70 72 6f 63 65 73 73 |n a "pre|-process|
|00001e40| 6f 72 22 20 70 68 61 73 | 65 20 74 68 61 74 20 74 |or" phas|e that t|
|00001e50| 72 61 6e 73 6c 61 74 65 | 73 20 74 68 65 20 6d 65 |ranslate|s the me|
|00001e60| 73 73 61 67 65 20 73 74 | 61 74 65 6d 65 6e 74 73 |ssage st|atements|
|00001e70| 20 69 6e 74 6f 20 61 6e | 20 65 71 75 69 76 61 6c | into an| equival|
|00001e80| 65 6e 74 20 6c 69 62 72 | 61 72 79 20 63 61 6c 6c |ent libr|ary call|
|00001e90| 20 74 68 61 74 20 74 68 | 65 20 6e 61 74 69 76 65 | that th|e native|
|00001ea0| 20 6c 61 6e 67 75 61 67 | 65 20 63 6f 6d 70 69 6c | languag|e compil|
|00001eb0| 65 72 20 63 61 6e 20 72 | 65 63 6f 67 6e 69 7a 65 |er can r|ecognize|
|00001ec0| 2e 20 20 54 68 65 20 69 | 6d 70 6f 72 74 61 6e 74 |. The i|mportant|
|00001ed0| 20 74 68 69 6e 67 20 74 | 6f 20 72 65 61 6c 69 7a | thing t|o realiz|
|00001ee0| 65 20 69 73 20 74 68 61 | 74 20 74 68 65 20 6d 65 |e is tha|t the me|
|00001ef0| 73 73 61 67 65 20 73 74 | 61 74 65 6d 65 6e 74 20 |ssage st|atement |
|00001f00| 69 73 20 6c 61 6e 67 75 | 61 67 65 20 69 6e 64 65 |is langu|age inde|
|00001f10| 70 65 6e 64 65 6e 74 2e | 20 20 59 6f 75 20 73 69 |pendent.| You si|
|00001f20| 6d 70 6c 79 20 70 69 63 | 6b 20 74 68 65 20 6c 61 |mply pic|k the la|
|00001f30| 6e 67 75 61 67 65 20 74 | 68 61 74 20 62 65 73 74 |nguage t|hat best|
|00001f40| 20 72 65 70 72 65 73 65 | 6e 74 73 20 79 6f 75 72 | represe|nts your|
|00001f50| 20 70 72 6f 62 6c 65 6d | 20 61 6e 64 20 61 64 64 | problem| and add|
|00001f60| 20 6d 65 73 73 61 67 69 | 6e 67 20 74 6f 20 69 74 | messagi|ng to it|
|00001f70| 2e 0d 0d fc 00 49 02 0a | 00 49 00 0e 02 1c 06 30 |.....I..|.I.....0|
|00001f80| f7 ff 00 15 12 01 f7 42 | 65 6e 65 66 69 74 73 20 |.......B|enefits |
|00001f90| 6f 66 20 4d 65 73 73 61 | 67 69 6e 67 ff 00 15 12 |of Messa|ging....|
|00001fa0| 00 f7 0d ff 00 15 0a 00 | f7 fc 00 6b 02 0a 00 6b |........|...k...k|
|00001fb0| 00 0e 02 1c 06 30 f7 0d | 02 41 0d fc 00 49 02 0a |.....0..|.A...I..|
|00001fc0| 00 49 00 0e 02 1c 06 30 | f7 ff 00 15 12 01 f7 53 |.I.....0|.......S|
|00001fd0| 65 61 72 63 68 69 6e 67 | 20 66 6f 72 20 4d 65 74 |earching| for Met|
|00001fe0| 68 6f 64 73 ff 00 15 0a | 00 f7 0d fc 00 6b 02 0a |hods....|.....k..|
|00001ff0| 00 6b 00 0e 02 1c 06 30 | f7 0d 4d 65 73 73 61 67 |.k.....0|..Messag|
|00002000| 69 6e 67 20 62 72 69 6e | 67 73 20 61 6e 20 61 64 |ing brin|gs an ad|
|00002010| 64 69 74 69 6f 6e 61 6c | 20 6c 65 76 65 6c 20 6f |ditional| level o|
|00002020| 66 20 66 6c 65 78 69 62 | 69 6c 69 74 79 20 74 6f |f flexib|ility to|
|00002030| 20 6f 75 72 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 | our env|ironment|
|00002040| 2e 20 20 4a 75 73 74 20 | 6c 69 6b 65 20 44 4f 53 |. Just |like DOS|
|00002050| 20 6f 72 20 55 4e 49 58 | 20 61 6c 6c 6f 77 73 20 | or UNIX| allows |
|00002060| 75 73 20 74 6f 20 69 6e | 63 6c 75 64 65 20 6f 75 |us to in|clude ou|
|00002070| 72 20 6f 77 6e 20 22 73 | 68 65 6c 6c 22 20 63 6f |r own "s|hell" co|
|00002080| 6d 6d 61 6e 64 73 20 69 | 6e 20 74 68 65 20 73 65 |mmands i|n the se|
|00002090| 61 72 63 68 20 70 61 74 | 68 2c 20 6d 65 73 73 61 |arch pat|h, messa|
|000020a0| 67 69 6e 67 20 61 6c 6c | 6f 77 73 20 75 73 20 74 |ging all|ows us t|
|000020b0| 6f 20 73 65 61 72 63 68 | 20 66 6f 72 20 6d 65 74 |o search| for met|
|000020c0| 68 6f 64 20 6e 61 6d 65 | 73 20 69 6e 20 61 20 70 |hod name|s in a p|
|000020d0| 61 74 68 2e 20 20 49 6e | 20 6d 6f 73 74 20 63 61 |ath. In| most ca|
|000020e0| 73 65 73 20 74 68 65 20 | 73 65 61 72 63 68 20 70 |ses the |search p|
|000020f0| 61 74 68 20 6f 6e 6c 79 | 20 67 6f 65 73 20 75 70 |ath only| goes up|
|00002100| 20 74 68 65 20 63 6c 61 | 73 73 20 68 69 65 72 61 | the cla|ss hiera|
|00002110| 72 63 68 79 20 74 6f 77 | 61 72 64 20 74 68 65 20 |rchy tow|ard the |
|00002120| 72 6f 6f 74 20 6f 62 6a | 65 63 74 2e 20 20 54 68 |root obj|ect. Th|
|00002130| 69 73 20 70 61 74 68 20 | 63 61 6e 20 62 65 20 63 |is path |can be c|
|00002140| 68 61 6e 67 65 64 20 61 | 74 20 61 6e 79 20 74 69 |hanged a|t any ti|
|00002150| 6d 65 20 62 79 20 61 20 | 74 65 63 68 6e 69 71 75 |me by a |techniqu|
|00002160| 65 20 6b 6e 6f 77 20 61 | 73 20 22 64 65 6c 65 67 |e know a|s "deleg|
|00002170| 61 74 69 6f 6e 22 f9 04 | f7 ff 00 15 08 00 f7 f4 |ation"..|........|
|00002180| f9 00 f7 f9 00 f7 ff 00 | 15 0a 00 f7 2e 20 20 44 |........|..... D|
|00002190| 65 6c 65 67 61 74 69 6f | 6e 20 61 6c 6c 6f 77 73 |elegatio|n allows|
|000021a0| 20 6f 62 6a 65 63 74 73 | 20 74 6f 20 64 65 6c 65 | objects| to dele|
|000021b0| 67 61 74 65 20 6d 65 73 | 73 61 67 65 73 20 74 68 |gate mes|sages th|
|000021c0| 65 79 20 72 65 63 65 69 | 76 65 20 74 6f 20 6f 74 |ey recei|ve to ot|
|000021d0| 68 65 72 20 6f 62 6a 65 | 63 74 73 20 65 76 65 6e |her obje|cts even|
|000021e0| 20 69 6e 20 75 6e 72 65 | 6c 61 74 65 64 20 68 69 | in unre|lated hi|
|000021f0| 65 72 61 72 63 68 69 65 | 73 2e 0d 02 fc 0d fc 00 |erarchie|s.......|
|00002200| 48 02 0a 00 48 00 0e 02 | 1c 06 30 f7 ff 00 15 12 |H...H...|..0.....|
|00002210| 01 f7 50 6f 6c 79 6d 6f | 72 70 68 69 73 6d ff 00 |..Polymo|rphism..|
|00002220| 15 12 00 f7 0d fc 00 6b | 02 0a 00 6b 00 0e 02 1c |.......k|...k....|
|00002230| 06 30 f7 ff 00 15 0a 00 | f7 0d 4f 6e 65 20 61 64 |.0......|..One ad|
|00002240| 64 69 74 69 6f 6e 61 6c | 20 66 65 61 74 75 72 65 |ditional| feature|
|00002250| 20 6f 66 20 6d 65 73 73 | 61 67 69 6e 67 20 69 73 | of mess|aging is|
|00002260| 20 74 68 65 20 61 62 69 | 6c 69 74 79 20 66 6f 72 | the abi|lity for|
|00002270| 20 64 69 66 66 65 72 65 | 6e 74 20 6f 62 6a 65 63 | differe|nt objec|
|00002280| 74 73 20 74 6f 20 72 65 | 63 65 69 76 65 20 74 68 |ts to re|ceive th|
|00002290| 65 20 73 61 6d 65 20 6d | 65 73 73 61 67 65 20 61 |e same m|essage a|
|000022a0| 6e 64 20 65 78 65 63 75 | 74 65 20 64 69 66 66 65 |nd execu|te diffe|
|000022b0| 72 65 6e 74 20 6d 65 74 | 68 6f 64 73 2e 20 20 4d |rent met|hods. M|
|000022c0| 79 20 66 61 76 6f 72 69 | 74 65 20 64 65 6d 6f 6e |y favori|te demon|
|000022d0| 73 74 72 61 74 69 6f 6e | 20 6f 66 20 74 68 69 73 |stration| of this|
|000022e0| 20 69 73 20 75 73 69 6e | 67 20 74 68 65 20 4e 65 | is usin|g the Ne|
|000022f0| 58 54 20 6d 61 69 6c 20 | 73 79 73 74 65 6d 2e 20 |XT mail |system. |
|00002300| 20 49 66 20 79 6f 75 20 | 61 74 74 65 6d 70 74 20 | If you |attempt |
|00002310| 74 6f 20 73 65 6e 64 20 | 61 20 6d 65 73 73 61 67 |to send |a messag|
|00002320| 65 20 79 6f 75 20 63 61 | 6e 20 74 79 70 65 20 74 |e you ca|n type t|
|00002330| 65 78 74 20 69 6e 74 6f | 20 74 68 65 20 73 65 6e |ext into| the sen|
|00002340| 64 20 77 69 6e 64 6f 77 | 20 61 6e 64 20 63 6f 70 |d window| and cop|
|00002350| 79 2c 20 63 75 74 20 61 | 6e 64 20 70 61 73 74 65 |y, cut a|nd paste|
|00002360| 20 74 68 65 20 74 65 78 | 74 20 75 73 69 6e 67 20 | the tex|t using |
|00002370| 73 65 6c 65 63 74 69 6f | 6e 20 66 72 6f 6d 20 74 |selectio|n from t|
|00002380| 68 65 20 6d 61 69 6e 20 | 45 64 69 74 20 6d 65 6e |he main |Edit men|
|00002390| 75 2e 20 20 49 66 20 79 | 6f 75 20 63 6c 69 63 6b |u. If y|ou click|
|000023a0| 20 74 68 65 20 70 61 69 | 72 20 6f 66 20 6c 69 70 | the pai|r of lip|
|000023b0| 73 20 61 6e 64 20 72 65 | 63 6f 72 64 20 61 20 73 |s and re|cord a s|
|000023c0| 6f 75 6e 64 20 69 6e 74 | 6f 20 74 68 65 20 22 4c |ound int|o the "L|
|000023d0| 69 70 20 53 65 72 76 69 | 63 65 28 54 4d 29 22 20 |ip Servi|ce(TM)" |
|000023e0| 75 74 69 6c 69 74 79 20 | 28 79 6f 75 20 77 69 6c |utility |(you wil|
|000023f0| 6c 20 6e 65 65 64 20 61 | 20 6d 69 63 72 6f 70 68 |l need a| microph|
|00002400| 6f 6e 65 20 74 6f 20 64 | 6f 20 74 68 69 73 29 20 |one to d|o this) |
|00002410| 79 6f 75 20 77 69 6c 6c | 20 66 69 6e 64 20 74 68 |you will| find th|
|00002420| 61 74 20 79 6f 75 20 63 | 61 6e 20 73 65 6c 65 63 |at you c|an selec|
|00002430| 74 20 74 68 65 20 65 64 | 69 74 20 62 75 74 74 6f |t the ed|it butto|
|00002440| 6e 20 69 6e 73 69 64 65 | 20 74 68 65 20 22 4c 69 |n inside| the "Li|
|00002450| 70 20 53 65 72 76 69 63 | 65 22 20 61 72 65 61 20 |p Servic|e" area |
|00002460| 61 6e 64 20 75 73 65 20 | 74 68 65 20 73 61 6d 65 |and use |the same|
|00002470| 20 63 6f 70 79 2c 20 63 | 75 74 20 61 6e 64 20 70 | copy, c|ut and p|
|00002480| 61 73 74 65 20 6d 65 73 | 73 61 67 65 73 20 66 6f |aste mes|sages fo|
|00002490| 72 6d 20 74 68 65 20 6d | 61 69 6e 20 45 64 69 74 |rm the m|ain Edit|
|000024a0| 20 6d 65 6e 75 20 74 6f | 20 63 6f 70 79 2c 20 63 | menu to| copy, c|
|000024b0| 75 74 20 61 6e 64 20 70 | 61 73 74 65 20 73 6f 75 |ut and p|aste sou|
|000024c0| 6e 64 20 61 73 20 77 65 | 6c 6c 20 61 73 20 74 65 |nd as we|ll as te|
|000024d0| 78 74 2e 20 20 54 68 69 | 73 20 69 73 20 69 6c 6c |xt. Thi|s is ill|
|000024e0| 75 73 74 72 61 74 65 64 | 20 69 6e 20 66 69 67 75 |ustrated| in figu|
|000024f0| 72 65 20 31 30 2e 0d 0d | 0d 02 a1 0d 50 6f 6c 79 |re 10...|....Poly|
|00002500| 6d 6f 72 70 68 69 73 6d | 20 6d 65 61 6e 73 20 62 |morphism| means b|
|00002510| 65 69 6e 67 20 61 62 6c | 65 20 74 6f 20 61 73 73 |eing abl|e to ass|
|00002520| 75 6d 65 20 64 69 66 66 | 65 72 65 6e 74 20 66 6f |ume diff|erent fo|
|00002530| 72 6d 73 2e 20 20 54 68 | 65 20 72 6f 6f 74 73 20 |rms. Th|e roots |
|00002540| 6c 69 74 65 72 61 6c 6c | 79 20 61 72 65 20 ff 00 |literall|y are ..|
|00002550| 15 0a 02 f7 70 6f 6c 79 | ff 00 15 0a 00 f7 20 77 |....poly|...... w|
|00002560| 68 69 63 68 20 6d 65 61 | 6e 73 20 6d 61 6e 79 2c |hich mea|ns many,|
|00002570| 61 6e 64 20 ff 00 15 0a | 02 f7 6d 6f 72 70 68 ff |and ....|..morph.|
|00002580| 00 15 0a 00 f7 20 77 68 | 69 63 68 20 6d 65 61 6e |..... wh|ich mean|
|00002590| 73 20 66 6f 72 6d 2e 20 | 20 49 6e 20 74 68 65 20 |s form. | In the |
|000025a0| 70 72 6f 67 72 61 6d 6d | 69 6e 67 20 73 65 6e 73 |programm|ing sens|
|000025b0| 65 2c 20 74 68 65 20 6d | 65 73 73 61 67 65 20 63 |e, the m|essage c|
|000025c0| 61 75 73 65 73 20 64 69 | 66 66 65 72 65 6e 74 20 |auses di|fferent |
|000025d0| 73 65 63 74 69 6f 6e 73 | 20 6f 66 20 63 6f 64 65 |sections| of code|
|000025e0| 20 74 6f 20 62 65 20 65 | 78 65 63 75 74 65 64 2e | to be e|xecuted.|
|000025f0| 20 20 54 68 65 20 6d 65 | 73 73 61 67 65 73 20 69 | The me|ssages i|
|00002600| 6e 20 61 20 73 65 6e 73 | 65 20 22 74 75 72 6e 73 |n a sens|e "turns|
|00002610| 20 69 6e 74 6f 22 20 64 | 69 66 66 65 72 65 6e 74 | into" d|ifferent|
|00002620| 20 74 79 70 65 73 20 6f | 66 20 63 6f 64 65 20 74 | types o|f code t|
|00002630| 68 61 74 20 69 73 20 65 | 78 65 63 75 74 65 64 2e |hat is e|xecuted.|
|00002640| 20 20 46 6f 72 20 61 70 | 70 6c 69 63 61 74 69 6f | For ap|plicatio|
|00002650| 6e 20 64 65 76 65 6c 6f | 70 65 72 73 20 70 6f 6c |n develo|pers pol|
|00002660| 79 6d 6f 72 70 68 69 73 | 6d 20 6d 65 61 6e 73 20 |ymorphis|m means |
|00002670| 74 68 61 74 20 69 66 20 | 6f 75 72 20 61 70 70 6c |that if |our appl|
|00002680| 69 63 61 74 69 6f 6e 73 | 20 6e 65 65 64 20 74 6f |ications| need to|
|00002690| 20 65 64 69 74 20 6f 62 | 6a 65 63 74 73 2c 20 77 | edit ob|jects, w|
|000026a0| 65 20 73 69 6d 70 6c 79 | 20 61 64 64 20 63 6f 70 |e simply| add cop|
|000026b0| 79 2c 20 63 75 74 20 61 | 6e 64 20 70 61 73 74 65 |y, cut a|nd paste|
|000026c0| 20 6d 65 74 68 6f 64 73 | 20 74 6f 20 6f 75 72 20 | methods| to our |
|000026d0| 6f 62 6a 65 63 74 73 2e | 20 20 57 65 20 63 61 6e |objects.| We can|
|000026e0| 20 75 73 65 20 74 68 65 | 20 73 61 6d 65 20 65 64 | use the| same ed|
|000026f0| 69 74 20 6d 65 6e 75 20 | 74 68 61 74 20 69 73 20 |it menu |that is |
|00002700| 75 73 65 64 20 74 6f 20 | 65 64 69 74 20 74 65 78 |used to |edit tex|
|00002710| 74 20 61 6e 64 20 73 6f | 75 6e 64 20 61 73 20 77 |t and so|und as w|
|00002720| 65 6c 6c 20 61 73 20 6f | 75 72 20 6f 77 6e 20 63 |ell as o|ur own c|
|00002730| 75 73 74 6f 6d 20 6f 62 | 6a 65 63 74 73 2e 20 20 |ustom ob|jects. |
|00002740| 54 68 69 73 20 73 61 76 | 65 73 20 74 68 65 20 64 |This sav|es the d|
|00002750| 65 76 65 6c 6f 70 65 72 | 73 20 74 69 6d 65 20 61 |eveloper|s time a|
|00002760| 6e 64 20 70 72 6f 76 69 | 64 65 73 20 74 68 65 20 |nd provi|des the |
|00002770| 75 73 65 72 20 77 69 74 | 68 20 61 20 6d 6f 72 65 |user wit|h a more|
|00002780| 20 63 6f 6e 73 69 73 74 | 61 6e 74 20 75 73 65 72 | consist|ant user|
|00002790| 20 69 6e 74 65 72 66 61 | 63 65 2e 0d 02 71 0d fc | interfa|ce...q..|
|000027a0| 00 48 02 0a 00 48 00 0e | 02 1c 06 30 f7 ff 00 15 |.H...H..|...0....|
|000027b0| 12 01 f7 4d 65 73 73 61 | 67 65 20 50 72 6f 74 6f |...Messa|ge Proto|
|000027c0| 63 6f 6c 73 f9 00 f7 ff | 00 15 0a 00 f7 0d fc 00 |cols....|........|
|000027d0| 6b 02 0a 00 6b 00 0e 02 | 1c 06 30 f7 0d 4d 65 73 |k...k...|..0..Mes|
|000027e0| 73 61 67 65 73 20 63 61 | 6e 20 62 65 20 67 72 6f |sages ca|n be gro|
|000027f0| 75 70 65 64 20 74 6f 67 | 65 74 68 65 72 2e 20 20 |uped tog|ether. |
|00002800| 41 20 67 72 6f 75 70 20 | 6f 66 20 6d 65 73 73 61 |A group |of messa|
|00002810| 67 65 73 20 74 68 61 74 | 20 69 73 20 72 65 6c 61 |ges that| is rela|
|00002820| 74 65 64 20 61 6e 64 20 | 6f 66 74 65 6e 20 75 73 |ted and |often us|
|00002830| 65 64 20 74 6f 67 65 74 | 68 65 72 20 69 73 20 6b |ed toget|her is k|
|00002840| 6e 6f 77 6e 20 61 73 20 | 61 20 70 72 6f 74 6f 63 |nown as |a protoc|
|00002850| 6f 6c 2e 20 20 54 68 65 | 20 6d 65 73 73 61 67 65 |ol. The| message|
|00002860| 73 20 63 6f 6d 6d 6f 6e | 6c 79 20 67 72 6f 75 70 |s common|ly group|
|00002870| 65 64 20 74 6f 67 65 74 | 68 65 72 20 75 6e 64 65 |ed toget|her unde|
|00002880| 72 20 74 68 65 20 6d 61 | 69 6e 20 65 64 69 74 20 |r the ma|in edit |
|00002890| 6d 65 6e 75 20 73 75 63 | 68 20 61 73 20 63 75 74 |menu suc|h as cut|
|000028a0| 2c 20 63 6f 70 79 2c 20 | 70 61 73 74 65 2c 20 75 |, copy, |paste, u|
|000028b0| 6e 64 6f 2c 20 64 65 6c | 65 74 65 2c 20 75 6e 2d |ndo, del|ete, un-|
|000028c0| 64 65 6c 65 74 65 20 61 | 6e 64 20 73 65 6c 65 63 |delete a|nd selec|
|000028d0| 74 20 61 6c 6c 20 64 65 | 66 69 6e 65 20 61 6e 20 |t all de|fine an |
|000028e0| 65 64 69 74 20 70 72 6f | 74 6f 63 6f 6c 2e 20 20 |edit pro|tocol. |
|000028f0| 50 72 6f 74 6f 63 6f 6c | 73 20 61 72 65 20 69 6d |Protocol|s are im|
|00002900| 70 6f 72 74 61 6e 74 20 | 6e 6f 74 20 6f 6e 6c 79 |portant |not only|
|00002910| 20 66 6f 72 20 63 6f 6e | 73 69 73 74 65 6e 63 79 | for con|sistency|
|00002920| 20 62 65 74 77 65 65 6e | 20 61 70 70 6c 69 63 61 | between| applica|
|00002930| 74 69 6f 6e 73 20 62 75 | 74 20 61 6c 73 6f 20 66 |tions bu|t also f|
|00002940| 6f 72 20 72 65 61 73 6f | 6e 73 20 6f 66 20 65 78 |or reaso|ns of ex|
|00002950| 74 65 6e 64 69 62 69 6c | 69 74 79 20 61 6e 64 20 |tendibil|ity and |
|00002960| 6d 61 69 6e 74 61 69 6e | 61 62 69 6c 69 74 79 2e |maintain|ability.|
|00002970| 20 20 57 68 65 6e 20 77 | 65 20 68 61 76 65 20 66 | When w|e have f|
|00002980| 75 6c 6c 20 6d 6f 74 69 | 6f 6e 20 76 69 64 65 6f |ull moti|on video|
|00002990| 20 6f 62 6a 65 63 74 73 | 20 69 6e 20 66 75 74 75 | objects| in futu|
|000029a0| 72 65 20 63 6f 6d 70 75 | 74 65 72 73 20 77 65 20 |re compu|ters we |
|000029b0| 77 69 6c 6c 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |will be |able to |
|000029c0| 61 64 64 20 76 69 64 65 | 6f 20 65 64 69 74 6f 72 |add vide|o editor|
|000029d0| 73 20 74 6f 20 6f 75 72 | 20 6d 61 69 6c 20 73 79 |s to our| mail sy|
|000029e0| 73 74 65 6d 73 20 73 69 | 6d 70 6c 79 20 62 79 20 |stems si|mply by |
|000029f0| 75 73 69 6e 67 20 74 68 | 65 20 73 61 6d 65 20 65 |using th|e same e|
|00002a00| 64 69 74 20 70 72 6f 74 | 6f 63 6f 6c 73 2e 0d 04 |dit prot|ocols...|
|00002a10| 8c 0d fc 00 48 02 0a 00 | 48 00 0e 02 1c 06 30 f7 |....H...|H.....0.|
|00002a20| ff 00 15 12 01 f7 44 79 | 6e 61 6d 69 63 20 42 69 |......Dy|namic Bi|
|00002a30| 6e 64 69 6e 67 ff 00 15 | 0a 00 f7 0d fc 00 6b 02 |nding...|......k.|
|00002a40| 0a 00 6b 00 0e 02 1c 06 | 30 f7 0d 57 68 65 6e 20 |..k.....|0..When |
|00002a50| 77 65 20 64 65 63 69 64 | 65 20 74 68 61 74 20 77 |we decid|e that w|
|00002a60| 65 20 77 61 6e 74 20 74 | 6f 20 73 65 6e 64 20 61 |e want t|o send a|
|00002a70| 20 6d 65 73 73 61 67 65 | 20 66 72 6f 6d 20 6f 6e | message| from on|
|00002a80| 65 20 6f 62 6a 65 63 74 | 20 74 6f 20 61 6e 6f 74 |e object| to anot|
|00002a90| 68 65 72 2c 20 77 65 20 | 6d 75 73 74 20 73 70 65 |her, we |must spe|
|00002aa0| 63 69 66 79 20 61 20 64 | 65 73 74 69 6e 61 74 69 |cify a d|estinati|
|00002ab0| 6f 6e 20 66 6f 72 20 74 | 68 65 20 6d 65 73 73 61 |on for t|he messa|
|00002ac0| 67 65 2e 20 20 54 68 65 | 72 65 20 61 72 65 20 74 |ge. The|re are t|
|00002ad0| 77 6f 20 74 69 6d 65 73 | 20 69 6e 20 74 68 65 20 |wo times| in the |
|00002ae0| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 20 73 74 61 67 |compilat|ion stag|
|00002af0| 65 20 74 68 61 74 20 74 | 68 69 73 20 63 61 6e 20 |e that t|his can |
|00002b00| 68 61 70 70 65 6e 3a 20 | 77 68 65 6e 20 74 68 65 |happen: |when the|
|00002b10| 20 70 72 6f 67 72 61 6d | 20 69 73 20 63 6f 6d 70 | program| is comp|
|00002b20| 69 6c 65 64 20 66 6f 72 | 6d 20 69 74 73 20 73 6f |iled for|m its so|
|00002b30| 75 72 63 65 20 74 6f 20 | 6f 62 6a 65 63 74 20 63 |urce to |object c|
|00002b40| 6f 64 65 20 6f 72 20 61 | 66 74 65 72 20 74 68 65 |ode or a|fter the|
|00002b50| 20 70 72 6f 67 72 61 6d | 20 69 73 20 72 75 6e 2e | program| is run.|
|00002b60| 20 20 4d 6f 73 74 20 74 | 72 61 64 69 74 69 6f 6e | Most t|radition|
|00002b70| 61 6c 20 63 6f 6d 70 69 | 6c 65 72 73 20 6d 61 6b |al compi|lers mak|
|00002b80| 65 20 61 6e 20 61 73 73 | 6f 63 69 61 74 69 6f 6e |e an ass|ociation|
|00002b90| 20 62 65 74 77 65 65 6e | 20 61 20 73 75 62 72 6f | between| a subro|
|00002ba0| 75 74 69 6e 65 20 61 6e | 64 20 77 68 65 72 65 20 |utine an|d where |
|00002bb0| 74 68 61 74 20 73 75 62 | 72 6f 75 74 69 6e 65 20 |that sub|routine |
|00002bc0| 6c 6f 63 61 74 69 6f 6e | 20 69 73 20 77 68 65 6e |location| is when|
|00002bd0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 69 73 20 | the pro|gram is |
|00002be0| 63 6f 6d 70 69 6c 65 64 | 2e 20 20 57 69 74 68 20 |compiled|. With |
|00002bf0| 4f 62 6a 65 63 74 69 76 | 65 20 43 20 77 65 20 68 |Objectiv|e C we h|
|00002c00| 61 76 65 20 61 20 73 6c | 69 67 68 74 6c 79 20 6d |ave a sl|ightly m|
|00002c10| 6f 72 65 20 72 69 63 68 | 20 65 6e 76 69 72 6f 6e |ore rich| environ|
|00002c20| 6d 65 6e 74 20 74 6f 20 | 63 68 6f 73 65 20 77 68 |ment to |chose wh|
|00002c30| 65 6e 20 74 68 65 20 64 | 65 73 74 69 6e 61 74 69 |en the d|estinati|
|00002c40| 6f 6e 20 69 73 20 73 70 | 65 63 69 66 69 65 64 2e |on is sp|ecified.|
|00002c50| 20 20 57 65 20 64 65 6c | 61 79 20 74 68 65 20 64 | We del|ay the d|
|00002c60| 65 63 69 73 69 6f 6e 20 | 74 69 6c 6c 20 74 68 65 |ecision |till the|
|00002c70| 20 70 72 6f 67 72 61 6d | 20 69 73 20 61 63 74 75 | program| is actu|
|00002c80| 61 6c 6c 79 20 72 75 6e | 6e 69 6e 67 2e 20 20 54 |ally run|ning. T|
|00002c90| 68 69 73 20 69 73 20 63 | 61 6c 6c 65 64 20 6c 61 |his is c|alled la|
|00002ca0| 74 65 20 62 69 6e 64 69 | 6e 67 20 30 72 20 64 79 |te bindi|ng 0r dy|
|00002cb0| 6e 61 6d 69 63 20 62 69 | 6e 64 69 6e 67 2e 20 20 |namic bi|nding. |
|00002cc0| 44 79 6e 61 6d 69 63 20 | 62 69 6e 64 69 6e 67 20 |Dynamic |binding |
|00002cd0| 61 6c 6c 6f 77 73 20 74 | 68 65 20 49 6e 74 65 72 |allows t|he Inter|
|00002ce0| 66 61 63 65 20 42 75 69 | 6c 64 65 72 20 74 6f 20 |face Bui|lder to |
|00002cf0| 68 61 76 65 20 61 20 22 | 54 65 73 74 20 49 6e 74 |have a "|Test Int|
|00002d00| 65 72 66 61 63 65 22 20 | 6d 65 6e 75 2e 20 20 54 |erface" |menu. T|
|00002d10| 68 69 73 20 61 6c 6c 6f | 77 73 20 75 73 65 72 20 |his allo|ws user |
|00002d20| 74 6f 20 74 65 73 74 20 | 74 68 65 20 6f 62 6a 65 |to test |the obje|
|00002d30| 63 74 73 20 77 69 74 68 | 69 6e 20 49 6e 74 65 72 |cts with|in Inter|
|00002d40| 66 61 63 65 20 42 75 69 | 6c 64 65 72 20 61 6e 64 |face Bui|lder and|
|00002d50| 20 74 68 65 69 72 20 63 | 6f 6e 6e 65 63 74 69 6f | their c|onnectio|
|00002d60| 6e 73 20 77 69 74 68 6f | 75 74 20 65 76 65 72 20 |ns witho|ut ever |
|00002d70| 68 61 76 69 6e 67 20 74 | 6f 20 63 6f 6d 70 69 6c |having t|o compil|
|00002d80| 65 20 6f 72 20 6c 69 6e | 6b 20 74 68 65 69 72 20 |e or lin|k their |
|00002d90| 70 72 6f 67 72 61 6d 73 | 2e 20 20 44 79 6e 61 6d |programs|. Dynam|
|00002da0| 69 63 20 62 69 6e 64 69 | 6e 67 20 61 6c 6c 6f 77 |ic bindi|ng allow|
|00002db0| 73 20 61 20 67 72 65 61 | 74 65 20 64 65 61 6c 20 |s a grea|te deal |
|00002dc0| 6f 66 20 66 6c 65 78 69 | 62 69 6c 69 74 79 20 74 |of flexi|bility t|
|00002dd0| 6f 20 74 68 65 20 70 65 | 72 73 6f 6e 20 77 68 6f |o the pe|rson who|
|00002de0| 20 77 61 6e 74 73 20 74 | 6f 20 63 75 73 74 6f 6d | wants t|o custom|
|00002df0| 69 7a 65 20 61 6e 20 65 | 78 69 73 74 69 6e 67 20 |ize an e|xisting |
|00002e00| 62 69 6e 61 72 79 20 61 | 70 70 6c 69 63 61 74 69 |binary a|pplicati|
|00002e10| 6f 6e 2e 20 20 54 68 65 | 20 74 72 61 64 69 74 69 |on. The| traditi|
|00002e20| 6f 6e 61 6c 20 73 79 73 | 74 65 6d 20 69 6e 74 65 |onal sys|tem inte|
|00002e30| 67 72 61 74 6f 72 20 64 | 6f 65 73 20 6e 6f 74 20 |grator d|oes not |
|00002e40| 68 61 76 20 65 20 74 68 | 65 20 61 62 69 6c 69 74 |hav e th|e abilit|
|00002e50| 79 20 74 6f 20 61 64 64 | 20 61 6e 64 20 73 75 62 |y to add| and sub|
|00002e60| 73 74 72 61 63 74 20 6d | 6f 64 75 6c 65 73 20 66 |stract m|odules f|
|00002e70| 72 6f 6d 20 61 6e 20 65 | 78 69 73 74 69 6e 67 20 |rom an e|xisting |
|00002e80| 70 72 6f 67 72 61 6d 20 | 77 68 69 6c 65 20 69 74 |program |while it|
|00002e90| 20 69 73 20 72 75 6e 6e | 69 6e 67 2e 0d 01 6b 0d | is runn|ing...k.|
|00002ea0| 32 29 20 57 68 61 74 20 | 69 66 20 79 6f 75 20 77 |2) What |if you w|
|00002eb0| 65 72 65 20 61 20 64 69 | 63 74 69 6f 6e 61 72 79 |ere a di|ctionary|
|00002ec0| 20 6f 62 6a 65 63 74 3f | 20 20 57 68 61 74 20 74 | object?| What t|
|00002ed0| 79 70 65 73 20 6f 66 20 | 6d 65 73 73 61 67 65 73 |ypes of |messages|
|00002ee0| 20 6d 69 67 68 74 20 79 | 6f 75 20 72 65 73 70 6f | might y|ou respo|
|00002ef0| 6e 64 20 74 6f 3f 20 20 | 57 68 61 74 20 6d 69 67 |nd to? |What mig|
|00002f00| 68 74 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 73 |ht the a|rguments|
|00002f10| 20 62 65 3f 0d 0d 33 29 | 20 57 68 61 74 20 61 72 | be?..3)| What ar|
|00002f20| 65 20 73 6f 6d 65 20 63 | 6f 6d 6d 6f 6e 20 70 72 |e some c|ommon pr|
|00002f30| 6f 74 6f 63 6f 6c 73 20 | 74 68 61 74 20 79 6f 75 |otocols |that you|
|00002f40| 20 75 73 65 20 65 76 65 | 72 79 20 64 61 79 3f 20 | use eve|ry day? |
|00002f50| 20 49 66 20 79 6f 75 20 | 77 65 72 65 20 61 74 74 | If you |were att|
|00002f60| 65 6d 70 74 69 6e 67 20 | 74 6f 20 63 72 65 61 74 |empting |to creat|
|00002f70| 65 20 61 6e 20 6f 62 6a | 65 63 74 20 74 68 61 74 |e an obj|ect that|
|00002f80| 20 64 72 6f 76 65 20 61 | 20 63 61 72 20 77 68 61 | drove a| car wha|
|00002f90| 74 20 6d 69 67 68 74 20 | 79 6f 75 72 20 70 72 6f |t might |your pro|
|00002fa0| 74 6f 63 6f 6c 73 20 62 | 65 20 74 6f 20 64 72 69 |tocols b|e to dri|
|00002fb0| 76 65 20 74 68 65 20 63 | 61 72 3f 20 20 57 68 61 |ve the c|ar? Wha|
|00002fc0| 74 20 61 72 65 20 73 6f | 6d 65 20 6d 65 73 73 61 |t are so|me messa|
|00002fd0| 67 65 73 20 74 68 61 74 | 20 73 6f 6d 65 20 63 61 |ges that| some ca|
|00002fe0| 72 73 20 6d 69 67 68 74 | 20 72 65 73 70 6f 6e 64 |rs might| respond|
|00002ff0| 20 74 6f 20 62 75 74 20 | 6f 74 68 65 72 73 20 6d | to but |others m|
|00003000| 69 67 68 74 20 6e 6f 74 | 3f 0d 04 a5 fc 00 48 02 |ight not|?.....H.|
|00003010| 0a 00 48 00 0e 02 1c 06 | 30 f7 ff 00 15 0a 00 f7 |..H.....|0.......|
|00003020| f5 f6 ff 00 15 24 01 f7 | 43 68 61 70 74 65 72 20 |.....$..|Chapter |
|00003030| 35 3a 20 4d 65 73 73 61 | 67 69 6e 67 20 61 6e 64 |5: Messa|ging and|
|00003040| 20 44 79 6e 61 6d 69 63 | 20 42 69 6e 64 69 6e 67 | Dynamic| Binding|
|00003050| ff 00 15 24 00 f7 0d ff | 00 15 22 00 f7 fc 00 6b |...$....|.."....k|
|00003060| 02 0a 00 6b 00 0e 02 1c | 06 30 f7 0d 0d 0d 0d 0d |...k....|.0......|
|00003070| 0d 0d ff 00 15 0a 01 f7 | 6d 65 73 b7 73 61 67 65 |........|mes.sage|
|00003080| ff 00 15 0a 02 f7 20 5c | 27 6d 65 73 2d 69 6a 5c |...... \|'mes-ij\|
|00003090| 20 6e 0d 5b 4d 45 2c 20 | 66 72 2e 20 4f 46 2c 20 | n.[ME, |fr. OF, |
|000030a0| 66 72 2e 20 4d 4c 20 6d | 69 73 73 61 74 69 63 75 |fr. ML m|issaticu|
|000030b0| 6d 2c 20 66 72 2e 20 4c | 20 6d 69 73 73 75 73 2c |m, fr. L| missus,|
|000030c0| 20 70 70 2e 20 6f 66 20 | 6d 69 74 74 65 72 65 5d | pp. of |mittere]|
|000030d0| 0d 28 31 33 63 29 0d 31 | 3a 20 61 20 63 6f 6d 6d |.(13c).1|: a comm|
|000030e0| 75 6e 69 63 61 74 69 6f | 6e 20 69 6e 20 77 72 69 |unicatio|n in wri|
|000030f0| 74 69 6e 67 2c 20 69 6e | 20 73 70 65 65 63 68 2c |ting, in| speech,|
|00003100| 20 6f 72 20 62 79 20 73 | 69 67 6e 61 6c 73 0d 32 | or by s|ignals.2|
|00003110| 3a 20 61 20 6d 65 73 73 | 65 6e 67 65 72 27 73 20 |: a mess|enger's |
|00003120| 65 72 72 61 6e 64 20 6f | 72 20 66 75 6e 63 74 69 |errand o|r functi|
|00003130| 6f 6e 0d 33 3a 20 61 6e | 20 75 6e 64 65 72 6c 79 |on.3: an| underly|
|00003140| 69 6e 67 20 74 68 65 6d | 65 20 6f 72 20 69 64 65 |ing them|e or ide|
|00003150| 61 20 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |a . | |
|00003160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003180| 20 20 20 20 57 65 62 73 | 74 65 72 27 73 20 4e 69 | Webs|ter's Ni|
|00003190| 6e 74 68 20 4e 65 77 20 | 43 6f 6c 6c 65 67 69 61 |nth New |Collegia|
|000031a0| 74 65 20 44 69 63 74 69 | 6f 6e 61 72 79 ff 00 15 |te Dicti|onary...|
|000031b0| 0a 00 f7 0d 0d 4e 6f 77 | 20 74 68 61 74 20 79 6f |.....Now| that yo|
|000031c0| 75 20 68 61 76 65 20 61 | 6e 20 69 64 65 61 20 68 |u have a|n idea h|
|000031d0| 6f 77 20 65 61 73 79 20 | 69 74 20 69 73 20 74 6f |ow easy |it is to|
|000031e0| 20 63 72 65 61 74 65 20 | 6f 62 6a 65 63 74 73 2c | create |objects,|
|000031f0| 20 6f 75 72 20 6e 65 78 | 74 20 63 6f 6e 73 69 64 | our nex|t consid|
|00003200| 65 72 61 74 69 6f 6e 20 | 69 73 20 74 68 65 20 77 |eration |is the w|
|00003210| 61 79 73 20 77 65 20 63 | 6f 6d 6d 75 6e 69 63 61 |ays we c|ommunica|
|00003220| 74 65 20 62 65 74 77 65 | 65 6e 20 6f 62 6a 65 63 |te betwe|en objec|
|00003230| 74 73 2e 20 20 54 68 69 | 73 20 69 73 20 63 61 6c |ts. Thi|s is cal|
|00003240| 6c 65 64 20 6d 65 73 73 | 61 67 69 6e 67 2e 20 4f |led mess|aging. O|
|00003250| 62 6a 65 63 74 73 20 63 | 6f 6d 6d 75 6e 69 63 61 |bjects c|ommunica|
|00003260| 74 65 20 69 6e 20 61 20 | 6d 61 6e 6e 65 72 20 76 |te in a |manner v|
|00003270| 65 72 79 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 74 |ery simi|lar to t|
|00003280| 68 65 20 77 61 79 20 70 | 65 6f 70 6c 65 20 69 6e |he way p|eople in|
|00003290| 20 61 6e 20 6f 66 66 69 | 63 65 20 63 6f 6d 6d 75 | an offi|ce commu|
|000032a0| 6e 69 63 61 74 65 20 2d | 20 75 73 69 6e 67 20 6d |nicate -| using m|
|000032b0| 65 73 73 61 67 65 73 20 | 77 72 69 74 74 65 6e 20 |essages |written |
|000032c0| 6f 6e 20 6e 6f 74 65 73 | 2e 20 20 49 66 20 49 20 |on notes|. If I |
|000032d0| 77 61 73 20 74 6f 20 73 | 65 6e 64 20 79 6f 75 20 |was to s|end you |
|000032e0| 61 20 6e 6f 74 65 20 49 | 20 6d 69 67 68 74 20 70 |a note I| might p|
|000032f0| 75 74 20 77 68 6f 20 74 | 68 65 20 6e 6f 74 65 20 |ut who t|he note |
|00003300| 77 61 73 20 74 6f 2c 20 | 74 68 65 20 63 6f 6e 74 |was to, |the cont|
|00003310| 65 6e 74 73 20 6f 66 20 | 6d 79 20 6d 65 73 73 61 |ents of |my messa|
|00003320| 67 65 20 61 6e 64 20 61 | 6e 79 20 61 64 64 69 74 |ge and a|ny addit|
|00003330| 69 6f 6e 61 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |ional in|formatio|
|00003340| 6e 20 61 74 20 74 68 65 | 20 65 6e 64 2e 20 20 49 |n at the| end. I|
|00003350| 6e 20 6f 62 6a 65 63 74 | 20 62 61 73 65 64 20 63 |n object| based c|
|00003360| 6f 6d 70 75 74 69 6e 67 | 20 65 6e 76 69 72 6f 6e |omputing| environ|
|00003370| 6d 65 6e 74 73 2c 20 61 | 6e 79 20 6f 62 6a 65 63 |ments, a|ny objec|
|00003380| 74 20 63 61 6e 20 73 65 | 6e 64 20 61 20 6d 65 73 |t can se|nd a mes|
|00003390| 73 61 67 65 20 74 6f 20 | 61 6e 79 20 6f 74 68 65 |sage to |any othe|
|000033a0| 72 20 6f 62 6a 65 63 74 | 2e 20 20 54 68 65 20 6d |r object|. The m|
|000033b0| 65 73 73 61 67 65 20 63 | 6f 6e 74 61 69 6e 73 20 |essage c|ontains |
|000033c0| 77 68 6f 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 |who the |message |
|000033d0| 69 73 20 66 6f 72 2c 20 | 77 68 61 74 20 74 68 65 |is for, |what the|
|000033e0| 20 6d 65 73 73 61 67 65 | 20 63 6f 6e 74 65 6e 74 | message| content|
|000033f0| 20 69 73 20 61 6e 64 20 | 61 6e 79 20 61 64 64 69 | is and |any addi|
|00003400| 74 69 6f 6e 61 6c 20 69 | 6e 66 6f 72 6d 61 74 69 |tional i|nformati|
|00003410| 6f 6e 20 72 65 71 75 69 | 72 65 64 2e 20 20 49 6e |on requi|red. In|
|00003420| 20 6f 62 6a 65 63 74 20 | 62 61 73 65 64 20 63 6f | object |based co|
|00003430| 6d 70 75 74 69 6e 67 2c | 20 74 68 65 20 6d 65 73 |mputing,| the mes|
|00003440| 73 61 67 65 20 63 6f 6e | 74 65 6e 74 20 69 73 20 |sage con|tent is |
|00003450| 61 6c 77 61 79 73 20 74 | 68 65 20 6e 61 6d 65 20 |always t|he name |
|00003460| 6f 66 20 61 20 6d 65 74 | 68 6f 64 20 6f 66 20 74 |of a met|hod of t|
|00003470| 68 65 20 ff 00 15 0a 01 | f7 74 61 72 67 65 74 ff |he .....|.target.|
|00003480| 00 15 0a 00 f7 20 6f 62 | 6a 65 63 74 2e 20 20 41 |..... ob|ject. A|
|00003490| 6e 20 65 78 61 6d 70 6c | 65 20 69 73 20 6c 69 73 |n exampl|e is lis|
|000034a0| 74 65 64 20 69 6e 20 66 | 69 67 75 72 65 20 38 2e |ted in f|igure 8.|
|000034b0| 0d 00 55 ff 00 15 08 01 | f7 0d 4f 62 6a 65 63 74 |..U.....|..Object|
|000034c0| 20 42 61 73 65 64 20 43 | 6f 6d 70 75 74 69 6e 67 | Based C|omputing|
|000034d0| 3a 20 41 20 4e 65 78 74 | 53 74 65 70 20 54 75 74 |: A Next|Step Tut|
|000034e0| 6f 72 69 61 6c 20 61 6e | 64 20 43 6f 6f 6b 62 6f |orial an|d Cookbo|
|000034f0| 6f 6b 20 2d 56 65 72 73 | 69 6f 6e 20 31 2e 35 20 |ok -Vers|ion 1.5 |
|00003500| 2d 20 44 47 4d 0d 0d 0d | 02 44 fc 00 6b 02 2d 00 |- DGM...|.D..k.-.|
|00003510| 6b 02 0e 02 1c 06 30 f7 | ff 00 15 0a 01 f7 46 69 |k.....0.|......Fi|
|00003520| 67 75 72 65 20 35 2d 33 | 3a 20 44 65 6d 6f 6e 73 |gure 5-3|: Demons|
|00003530| 74 72 61 74 69 6f 6e 20 | 6f 66 20 50 6f 6c 79 6d |tration |of Polym|
|00003540| 6f 72 70 68 69 73 6d 20 | 77 69 74 68 69 6e 20 4e |orphism |within N|
|00003550| 65 58 54 20 4d 61 69 6c | 2e ff 00 15 0a 00 f7 0d |eXT Mail|........|
|00003560| fc 00 6b 02 0a 00 6b 00 | 0e 02 1c 06 30 f7 0d 28 |..k...k.|....0..(|
|00003570| 54 68 69 6e 67 73 20 74 | 6f 20 64 6f 3a 20 61 64 |Things t|o do: ad|
|00003580| 64 20 70 69 63 74 75 72 | 65 73 20 6f 66 20 74 65 |d pictur|es of te|
|00003590| 78 74 20 61 6e 64 20 73 | 6f 75 6e 64 20 6f 62 6a |xt and s|ound obj|
|000035a0| 65 63 74 73 20 74 6f 20 | 74 68 65 20 61 62 6f 76 |ects to |the abov|
|000035b0| 65 20 66 69 67 75 72 65 | 29 0d 0d 41 6c 74 68 6f |e figure|)..Altho|
|000035c0| 75 67 68 20 74 68 69 73 | 20 69 73 20 61 20 66 75 |ugh this| is a fu|
|000035d0| 6e 20 65 78 61 6d 70 6c | 65 20 74 6f 20 64 65 6d |n exampl|e to dem|
|000035e0| 6f 6e 73 74 72 61 74 65 | 20 74 6f 20 6f 74 68 65 |onstrate| to othe|
|000035f0| 72 73 2c 20 74 68 65 20 | 75 6e 64 65 72 6c 79 69 |rs, the |underlyi|
|00003600| 6e 67 20 70 72 69 6e 63 | 69 70 61 6c 73 20 73 68 |ng princ|ipals sh|
|00003610| 6f 75 6c 64 20 6e 6f 74 | 20 62 65 20 6f 76 65 72 |ould not| be over|
|00003620| 6c 6f 6f 6b 65 64 2e 20 | 20 49 6e 20 74 68 69 73 |looked. | In this|
|00003630| 20 65 78 61 6d 70 6c 65 | 20 77 65 20 61 72 65 20 | example| we are |
|00003640| 73 65 6e 64 69 6e 67 20 | 74 68 65 20 73 61 6d 65 |sending |the same|
|00003650| 20 6d 65 73 73 61 67 65 | 73 20 74 6f 20 74 77 6f | message|s to two|
|00003660| 20 64 69 66 66 65 72 65 | 6e 74 20 6f 62 6a 65 63 | differe|nt objec|
|00003670| 74 73 3a 20 61 20 74 65 | 78 74 20 6f 62 6a 65 63 |ts: a te|xt objec|
|00003680| 74 20 61 6e 64 20 61 20 | 73 6f 75 6e 64 20 6f 62 |t and a |sound ob|
|00003690| 6a 65 63 74 2e 20 20 45 | 61 63 68 20 6f 66 20 74 |ject. E|ach of t|
|000036a0| 68 65 73 65 20 6f 62 6a | 65 63 74 73 20 68 61 73 |hese obj|ects has|
|000036b0| 20 63 6f 6d 70 6c 65 74 | 65 6c 79 20 64 69 66 66 | complet|ely diff|
|000036c0| 65 72 65 6e 74 20 74 79 | 70 65 73 20 6f 66 20 69 |erent ty|pes of i|
|000036d0| 6e 74 65 72 6e 61 6c 20 | 64 61 74 61 20 61 6e 64 |nternal |data and|
|000036e0| 20 65 61 63 68 20 6f 62 | 6a 65 63 74 20 6d 75 73 | each ob|ject mus|
|000036f0| 74 20 68 61 76 65 20 64 | 69 66 66 65 72 65 6e 74 |t have d|ifferent|
|00003700| 20 63 6f 70 79 2c 20 63 | 75 74 20 61 6e 64 20 70 | copy, c|ut and p|
|00003710| 61 73 74 65 20 6d 65 74 | 68 6f 64 73 20 74 6f 20 |aste met|hods to |
|00003720| 70 65 72 66 6f 72 6d 20 | 74 68 65 20 74 61 73 6b |perform |the task|
|00003730| 73 20 6f 6e 20 74 68 65 | 69 72 20 6f 77 6e 20 69 |s on the|ir own i|
|00003740| 6e 74 65 72 6e 61 6c 20 | 64 61 74 61 2e 0d 00 02 |nternal |data....|
|00003750| 0d 0d 00 1f fb 00 00 00 | 01 01 23 01 a3 57 4e 47 |........|..#..WNG|
|00003760| 72 61 70 68 69 63 2e 30 | 30 35 33 34 34 2e 65 70 |raphic.0|05344.ep|
|00003770| 73 f7 0d 03 60 fc 00 6b | 02 0a 00 6b 02 0e 02 1c |s...`..k|...k....|
|00003780| 06 30 f7 ff 00 15 0a 01 | f7 46 69 67 75 72 65 20 |.0......|.Figure |
|00003790| 35 2d 34 3a 20 53 74 61 | 74 69 63 20 76 73 2e 20 |5-4: Sta|tic vs. |
|000037a0| 44 79 6e 61 6d 69 63 20 | 42 69 6e 64 69 6e 67 0d |Dynamic |Binding.|
|000037b0| fc 00 6b 02 0a 00 6b 00 | 0e 02 1c 06 30 f7 ff 00 |..k...k.|....0...|
|000037c0| 15 0a 00 f7 0d 46 75 74 | 75 72 65 20 76 65 72 73 |.....Fut|ure vers|
|000037d0| 69 6f 6e 73 20 6f 66 20 | 4e 65 78 74 53 74 65 70 |ions of |NextStep|
|000037e0| 20 6d 61 79 20 61 6c 73 | 6f 20 73 75 70 70 6f 72 | may als|o suppor|
|000037f0| 74 20 74 68 65 20 61 62 | 69 6c 69 74 79 20 74 6f |t the ab|ility to|
|00003800| 20 64 79 6e 61 6d 69 63 | 61 6c 6c 79 20 61 64 64 | dynamic|ally add|
|00003810| 20 65 78 69 73 74 69 6e | 67 20 6d 6f 64 75 6c 65 | existin|g module|
|00003820| 73 20 74 6f 20 70 72 6f | 67 72 61 6d 73 2e 20 20 |s to pro|grams. |
|00003830| 54 68 69 73 20 66 65 61 | 74 75 72 65 20 69 73 20 |This fea|ture is |
|00003840| 6b 6e 6f 77 6e 20 61 73 | 20 22 64 79 6e 61 6d 69 |known as| "dynami|
|00003850| 63 20 6c 6f 61 64 69 6e | 67 22 2e 20 20 49 74 20 |c loadin|g". It |
|00003860| 77 6f 75 6c 64 20 61 6c | 6c 6f 77 20 66 75 74 75 |would al|low futu|
|00003870| 72 65 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 74 |re versi|ons of t|
|00003880| 68 65 20 49 6e 74 65 72 | 66 61 63 65 20 42 75 69 |he Inter|face Bui|
|00003890| 6c 64 65 72 20 74 6f 20 | 68 61 76 65 20 61 20 22 |lder to |have a "|
|000038a0| 4c 6f 61 64 20 50 61 6c | 65 74 74 65 2e 2e 2e 22 |Load Pal|ette..."|
|000038b0| 20 6d 65 6e 75 20 6f 70 | 74 69 6f 6e 20 77 68 69 | menu op|tion whi|
|000038c0| 63 68 20 77 69 6c 6c 20 | 73 69 67 6e 69 66 69 63 |ch will |signific|
|000038d0| 61 6e 74 6c 79 20 65 61 | 73 65 20 74 68 65 20 61 |antly ea|se the a|
|000038e0| 62 69 6c 69 74 79 20 66 | 6f 72 20 67 72 6f 75 70 |bility f|or group|
|000038f0| 73 20 6f 66 20 64 65 76 | 65 6c 6f 70 65 72 73 20 |s of dev|elopers |
|00003900| 74 6f 20 73 68 61 72 65 | 20 6f 62 6a 65 63 74 73 |to share| objects|
|00003910| 2e 0d 0d fc 00 48 02 0a | 00 48 00 0e 02 1c 06 30 |.....H..|.H.....0|
|00003920| f7 ff 00 15 10 01 f7 45 | 78 65 72 63 69 73 65 73 |.......E|xercises|
|00003930| ff 00 15 0a 00 f7 0d fc | 00 6b 02 0a 00 6b 00 0e |........|.k...k..|
|00003940| 02 1c 06 30 f7 0d 31 29 | 20 57 68 61 74 20 61 72 |...0..1)| What ar|
|00003950| 65 20 73 6f 6d 65 20 6f | 66 20 74 68 65 20 6d 65 |e some o|f the me|
|00003960| 73 73 61 67 65 73 20 75 | 73 65 64 20 62 79 20 6f |ssages u|sed by o|
|00003970| 74 68 65 72 20 6f 62 6a | 65 63 74 73 20 69 6e 20 |ther obj|ects in |
|00003980| 74 68 65 20 49 6e 74 65 | 72 66 61 63 65 20 42 75 |the Inte|rface Bu|
|00003990| 69 6c 64 65 72 3f 20 20 | 57 68 61 74 20 61 72 65 |ilder? |What are|
|000039a0| 20 73 6f 6d 65 20 6f 66 | 20 74 68 65 20 6d 65 73 | some of| the mes|
|000039b0| 73 61 67 65 73 20 74 68 | 61 74 20 77 69 6e 64 6f |sages th|at windo|
|000039c0| 77 73 20 72 65 73 70 6f | 6e 64 20 74 6f 3f 20 20 |ws respo|nd to? |
|000039d0| 48 6f 77 20 6d 69 67 68 | 74 20 79 6f 75 20 63 72 |How migh|t you cr|
|000039e0| 65 61 74 65 20 61 20 68 | 65 6c 70 20 70 61 6e 65 |eate a h|elp pane|
|000039f0| 6c 20 62 79 20 61 64 64 | 69 6e 67 20 74 65 78 74 |l by add|ing text|
|00003a00| 20 74 6f 20 74 68 65 20 | 61 20 70 61 6e 65 6c 20 | to the |a panel |
|00003a10| 61 6e 64 20 74 68 65 6e | 20 73 65 6e 64 69 6e 67 |and then| sending|
|00003a20| 20 61 20 22 6f 72 64 65 | 72 46 72 6f 6e 74 3a 22 | a "orde|rFront:"|
|00003a30| 20 6d 65 73 73 61 67 65 | 20 66 72 6f 6d 20 61 20 | message| from a |
|00003a40| 6d 65 6e 75 20 63 65 6c | 6c 20 74 6f 20 74 68 61 |menu cel|l to tha|
|00003a50| 74 20 70 61 6e 65 6c 3f | 20 20 20 57 68 61 74 20 |t panel?| What |
|00003a60| 68 61 70 70 65 6e 73 20 | 69 66 20 79 6f 75 20 61 |happens |if you a|
|00003a70| 64 64 20 61 20 22 50 72 | 69 6e 74 22 20 6d 65 6e |dd a "Pr|int" men|
|00003a80| 75 20 61 6e 64 20 73 65 | 6e 64 20 74 68 65 20 22 |u and se|nd the "|
|00003a90| 70 72 69 6e 74 50 53 63 | 6f 64 65 3a 22 20 6d 65 |printPSc|ode:" me|
|00003aa0| 73 73 61 67 65 20 74 6f | 20 61 20 77 69 6e 64 6f |ssage to| a windo|
|00003ab0| 77 2c 20 20 61 20 56 69 | 65 77 20 6f 72 20 61 6e |w, a Vi|ew or an|
|00003ac0| 79 20 73 75 62 2d 63 6c | 61 73 73 20 6f 66 20 56 |y sub-cl|ass of V|
|00003ad0| 69 65 77 3f 0d 00 a8 64 | 00 30 0a 00 2a a6 00 34 |iew?...d|.0..*..4|
|00003ae0| b1 00 00 a7 00 12 0c 02 | 29 0c 00 02 86 00 38 0d |........|).....8.|
|00003af0| 00 02 8c 00 dc 64 00 12 | 34 00 8e 24 00 14 4c 00 |.....d..|4..$..L.|
|00003b00| 9b 04 00 03 eb 00 46 0d | 00 02 ad 00 a4 64 00 17 |......F.|.....d..|
|00003b10| 8e 00 d2 64 00 1b fb 00 | 2c 85 00 03 5f 00 a1 04 |...d....|,..._...|
|00003b20| 00 05 69 00 8c 64 00 1f | b8 00 79 85 00 02 ce 00 |..i..d..|..y.....|
|00003b30| 0e 04 00 08 d5 00 8c 64 | 00 21 fb 00 bd 0d 00 03 |.......d|.!......|
|00003b40| 3c 01 4d 64 00 35 08 00 | 7e 24 00 24 f9 00 7e 64 |<.Md.5..|~$.$..~d|
|00003b50| 00 27 9c 00 93 04 00 0b | e5 00 b6 04 00 0f e9 00 |.'......|........|
|00003b60| 62 64 00 2a 0f 00 d9 04 | 00 37 4e 00 1c 05 00 37 |bd.*....|.7N....7|
|00003b70| 52 01 23 64 00 37 73 00 | c9 0c 00 2e 9d 00 62 00 |R.#d.7s.|......b.|
|00003b80| 18 04 00 02 00 00 38 04 | 00 02 06 00 38 24 00 34 |......8.|....8$.4|
|00003b90| b1 00 38 04 00 12 0c 00 | 2a 03 e4 fc 00 6b 02 0a |..8.....|*....k..|
|00003ba0| 00 6b 02 0e 02 1c 06 30 | f7 ff 00 15 0a 01 f7 46 |.k.....0|.......F|
|00003bb0| 69 67 75 72 65 20 35 2d | 34 3a 20 53 74 61 74 69 |igure 5-|4: Stati|
|00003bc0| 63 20 76 73 2e 20 44 79 | 6e 61 6d 69 63 20 42 69 |c vs. Dy|namic Bi|
|00003bd0| 6e 64 69 6e 67 0d fc 00 | 6b 02 0a 00 6b 00 0e 02 |nding...|k...k...|
|00003be0| 1c 06 30 f7 ff 00 15 0a | 00 f7 0d 46 75 74 75 72 |..0.....|...Futur|
|00003bf0| 65 20 76 65 72 73 69 6f | 6e 73 20 6f 66 20 4e 65 |e versio|ns of Ne|
|00003c00| 78 74 53 74 65 70 20 6d | 61 79 20 61 6c 73 6f 20 |xtStep m|ay also |
|00003c10| 73 75 70 70 6f 72 74 20 | 74 68 65 20 61 62 69 6c |support |the abil|
|00003c20| 69 74 79 20 74 6f 20 64 | 79 6e 61 6d 69 63 61 6c |ity to d|ynamical|
|00003c30| 6c 79 20 61 64 64 20 65 | 78 69 73 74 69 6e 67 20 |ly add e|xisting |
|00003c40| 6d 6f 64 75 6c 65 73 20 | 74 6f 20 70 72 6f 67 72 |modules |to progr|
|00003c50| 61 6d 73 2e 20 20 54 68 | 69 73 20 66 65 61 74 75 |ams. Th|is featu|
|00003c60| 72 65 20 69 73 20 6b 6e | 6f 77 6e 20 61 73 20 22 |re is kn|own as "|
|00003c70| 64 79 6e 61 6d 69 63 20 | 6c 6f 61 64 69 6e 67 22 |dynamic |loading"|
|00003c80| 2e 20 20 49 74 20 77 6f | 75 6c 64 20 61 6c 6c 6f |. It wo|uld allo|
|00003c90| 77 20 66 75 74 75 72 65 | 20 76 65 72 73 69 6f 6e |w future| version|
|00003ca0| 73 20 6f 66 20 74 68 65 | 20 49 6e 74 65 72 66 61 |s of the| Interfa|
|00003cb0| 63 65 20 42 75 69 6c 64 | 65 72 20 74 6f 20 68 61 |ce Build|er to ha|
|00003cc0| 76 65 20 61 20 22 4c 6f | 61 64 20 50 61 6c 65 74 |ve a "Lo|ad Palet|
|00003cd0| 74 65 2e 2e 2e 22 20 6d | 65 6e 75 20 6f 70 74 69 |te..." m|enu opti|
|00003ce0| 6f 6e 20 77 68 69 63 68 | 20 77 69 6c 6c 20 73 69 |on which| will si|
|00003cf0| 67 6e 69 66 69 63 61 6e | 74 6c 79 20 65 61 73 65 |gnifican|tly ease|
|00003d00| 20 74 68 65 20 61 62 69 | 6c 69 74 79 20 66 6f 72 | the abi|lity for|
|00003d10| 20 67 72 6f 75 70 73 20 | 6f 66 20 64 65 76 65 6c | groups |of devel|
|00003d20| 6f 70 65 72 73 20 74 6f | 20 73 68 61 72 65 20 6f |opers to| share o|
|00003d30| 62 6a 65 63 74 73 2e 20 | 20 55 73 65 72 73 20 77 |bjects. | Users w|
|00003d40| 69 6c 6c 20 62 65 20 61 | 62 6c 65 20 74 6f 20 6c |ill be a|ble to l|
|00003d50| 6f 61 64 20 6e 65 77 20 | 6f 62 6a 65 63 74 73 20 |oad new |objects |
|00003d60| 69 6e 74 6f 20 74 68 65 | 20 49 6e 74 65 72 66 61 |into the| Interfa|
|00003d70| 63 65 20 42 75 69 6c 64 | 65 72 20 61 73 20 77 65 |ce Build|er as we|
|00003d80| 6c 6c 20 61 73 20 74 65 | 73 74 20 74 68 65 20 6f |ll as te|st the o|
|00003d90| 62 6a 65 63 74 73 20 77 | 69 74 68 20 74 68 65 20 |bjects w|ith the |
|00003da0| 22 54 65 73 74 20 49 6e | 74 65 72 66 61 63 65 2e |"Test In|terface.|
|00003db0| 2e 2e 22 20 6f 70 74 69 | 6f 6e 2e 0d 0d fc 00 48 |.." opti|on.....H|
|00003dc0| 02 0a 00 48 00 0e 02 1c | 06 30 f7 ff 00 15 10 01 |...H....|.0......|
|00003dd0| f7 45 78 65 72 63 69 73 | 65 73 ff 00 15 0a 00 f7 |.Exercis|es......|
|00003de0| 0d fc 00 6b 02 0a 00 6b | 00 0e 02 1c 06 30 f7 0d |...k...k|.....0..|
|00003df0| 31 29 20 57 68 61 74 20 | 61 72 65 20 73 6f 6d 65 |1) What |are some|
|00003e00| 20 6f 66 20 74 68 65 20 | 6d 65 73 73 61 67 65 73 | of the |messages|
|00003e10| 20 75 73 65 64 20 62 79 | 20 6f 74 68 65 72 20 6f | used by| other o|
|00003e20| 62 6a 65 63 74 73 20 69 | 6e 20 74 68 65 20 49 6e |bjects i|n the In|
|00003e30| 74 65 72 66 61 63 65 20 | 42 75 69 6c 64 65 72 3f |terface |Builder?|
|00003e40| 20 20 57 68 61 74 20 61 | 72 65 20 73 6f 6d 65 20 | What a|re some |
|00003e50| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 73 20 |of the m|essages |
|00003e60| 74 68 61 74 20 77 69 6e | 64 6f 77 73 20 72 65 73 |that win|dows res|
|00003e70| 70 6f 6e 64 20 74 6f 3f | 20 20 48 6f 77 20 6d 69 |pond to?| How mi|
|00003e80| 67 68 74 20 79 6f 75 20 | 63 72 65 61 74 65 20 61 |ght you |create a|
|00003e90| 20 68 65 6c 70 20 70 61 | 6e 65 6c 20 62 79 20 61 | help pa|nel by a|
|00003ea0| 64 64 69 6e 67 20 74 65 | 78 74 20 74 6f 20 74 68 |dding te|xt to th|
|00003eb0| 65 20 61 20 70 61 6e 65 | 6c 20 61 6e 64 20 74 68 |e a pane|l and th|
|00003ec0| 65 6e 20 73 65 6e 64 69 | 6e 67 20 61 20 22 6f 72 |en sendi|ng a "or|
|00003ed0| 64 65 72 46 72 6f 6e 74 | 3a 22 20 6d 65 73 73 61 |derFront|:" messa|
|00003ee0| 67 65 20 66 72 6f 6d 20 | 61 20 6d 65 6e 75 20 63 |ge from |a menu c|
|00003ef0| 65 6c 6c 20 74 6f 20 74 | 68 61 74 20 70 61 6e 65 |ell to t|hat pane|
|00003f00| 6c 3f 20 20 20 57 68 61 | 74 20 68 61 70 70 65 6e |l? Wha|t happen|
|00003f10| 73 20 69 66 20 79 6f 75 | 20 61 64 64 20 61 20 22 |s if you| add a "|
|00003f20| 50 72 69 6e 74 22 20 6d | 65 6e 75 20 61 6e 64 20 |Print" m|enu and |
|00003f30| 73 65 6e 64 20 74 68 65 | 20 22 70 72 69 6e 74 50 |send the| "printP|
|00003f40| 53 63 6f 64 65 3a 22 20 | 6d 65 73 73 61 67 65 20 |Scode:" |message |
|00003f50| 74 6f 20 61 20 77 69 6e | 64 6f 77 2c 20 20 61 20 |to a win|dow, a |
|00003f60| 56 69 65 77 20 6f 72 20 | 61 6e 79 20 73 75 62 2d |View or |any sub-|
|00003f70| 63 6c 61 73 73 20 6f 66 | 20 56 69 65 77 3f 0d 00 |class of| View?..|
|00003f80| a8 64 00 30 0a 00 2a a6 | 00 34 b1 00 00 a7 00 12 |.d.0..*.|.4......|
|00003f90| 0c 02 29 0c 00 02 86 00 | 38 0d 00 02 8c 00 dc 64 |..).....|8......d|
|00003fa0| 00 12 34 00 8e 24 00 14 | 4c 00 9b 04 00 03 eb 00 |..4..$..|L.......|
|00003fb0| 46 0d 00 02 ad 00 a4 64 | 00 17 8e 00 d2 64 00 1b |F......d|.....d..|
|00003fc0| fb 00 2c 85 00 03 5f 00 | a1 04 00 05 69 00 8c 64 |..,..._.|....i..d|
|00003fd0| 00 1f b8 00 79 85 00 02 | ce 00 0e 04 00 08 d5 00 |....y...|........|
|00003fe0| 8c 64 00 21 fb 00 bd 0d | 00 03 3c 01 4d 64 00 35 |.d.!....|..<.Md.5|
|00003ff0| 08 00 7e 24 00 24 f9 00 | 7e 64 00 27 9c 00 93 04 |..~$.$..|~d.'....|
|00004000| 00 0b e5 00 b6 04 00 0f | e9 00 62 64 00 2a 0f 00 |........|..bd.*..|
|00004010| d9 04 00 37 4e 00 1c 05 | 00 37 52 01 23 64 00 3b |...7N...|.7R.#d.;|
|00004020| 99 00 d7 0c 00 2e 9d 00 | 62 |........|b |
+--------+-------------------------+-------------------------+--------+--------+